shithub: furgit

ref: 2cb9c32187f0f14f38ab8124466f0ad17f77c5d0
dir: /objectheader/encode.go/

View raw version
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)
}