diff options
Diffstat (limited to 'object/blob/serialize.go')
| -rw-r--r-- | object/blob/serialize.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/object/blob/serialize.go b/object/blob/serialize.go index 80cce8dc..5594b200 100644 --- a/object/blob/serialize.go +++ b/object/blob/serialize.go @@ -7,14 +7,14 @@ import ( objecttype "codeberg.org/lindenii/furgit/object/type" ) -// SerializeWithoutHeader renders the raw blob body bytes. -func (blob *Blob) SerializeWithoutHeader() ([]byte, error) { +// BytesWithoutHeader renders the raw blob body bytes. +func (blob *Blob) BytesWithoutHeader() ([]byte, error) { return append([]byte(nil), blob.Data...), nil } -// SerializeWithHeader renders the raw object (header + body). -func (blob *Blob) SerializeWithHeader() ([]byte, error) { - body, err := blob.SerializeWithoutHeader() +// BytesWithHeader renders the raw object (header + body). +func (blob *Blob) BytesWithHeader() ([]byte, error) { + body, err := blob.BytesWithoutHeader() if err != nil { return nil, err } |
