ref: a902f6849d938a51fa34dc292f5c81d26c4b6c36
dir: /object/header/encode.go/
package objectheader
import objecttype "codeberg.org/lindenii/furgit/object/type"
// Encode returns a canonical loose-object header ("type size\\x00").
func Encode(ty objecttype.Type, size int64) ([]byte, bool) {
return Append(nil, ty, size)
}