diff options
Diffstat (limited to 'object/tree/serialize.go')
| -rw-r--r-- | object/tree/serialize.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/object/tree/serialize.go b/object/tree/serialize.go index 69deacda..922cd145 100644 --- a/object/tree/serialize.go +++ b/object/tree/serialize.go @@ -8,8 +8,8 @@ import ( objecttype "codeberg.org/lindenii/furgit/object/type" ) -// SerializeWithoutHeader renders the raw tree body bytes. -func (tree *Tree) SerializeWithoutHeader() ([]byte, error) { +// BytesWithoutHeader renders the raw tree body bytes. +func (tree *Tree) BytesWithoutHeader() ([]byte, error) { var bodyLen int for _, entry := range tree.Entries { @@ -35,9 +35,9 @@ func (tree *Tree) SerializeWithoutHeader() ([]byte, error) { return body, nil } -// SerializeWithHeader renders the raw object (header + body). -func (tree *Tree) SerializeWithHeader() ([]byte, error) { - body, err := tree.SerializeWithoutHeader() +// BytesWithHeader renders the raw object (header + body). +func (tree *Tree) BytesWithHeader() ([]byte, error) { + body, err := tree.BytesWithoutHeader() if err != nil { return nil, err } |
