shithub: furgit

ref: fd8db6b36f70f60dbaaf49353e3809b51769fe2a
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)
}