aboutsummaryrefslogtreecommitdiff
path: root/object/header/encode.go
blob: 29028ba4374049815a50b7cb39fad2acddd24973 (about) (plain) (blame)
1
2
3
4
5
6
7
8
package objectheader

import objecttype "lindenii.org/go/furgit/object/type"

// Encode returns a canonical loose-object header ("type size\\x00").
func Encode(ty objecttype.Type, size int64) ([]byte, bool) {
	return Append(nil, ty, size)
}