shithub: furgit

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