shithub: furgit

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