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)
}
![]() |
index : ~runxiyu/furgit.git | |
| Git library in pure Go |
| aboutsummaryrefslogtreecommitdiff |
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)
}