From 676d0e6766e9af0574485dfac9a5d8ddf933ab03 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 17 May 2026 14:45:40 +0000 Subject: object: Serialize -> Bytes --- object/tree/serialize.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'object/tree/serialize.go') 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 } -- cgit v1.3.1-10-gc9f91