blob: 1cca968b1e3ea001367405d1000a873f3f3ef4da (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
|
package objectheader
import "codeberg.org/lindenii/furgit/objecttype"
// Encode returns a canonical loose-object header ("type size\\x00").
func Encode(ty objecttype.Type, size int64) ([]byte, bool) {
return Append(nil, ty, size)
}
|