shithub: furgit

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