diff options
| author | 2026-05-17 14:45:40 +0000 | |
|---|---|---|
| committer | 2026-05-17 14:45:40 +0000 | |
| commit | 676d0e6766e9af0574485dfac9a5d8ddf933ab03 (patch) | |
| tree | f1e03fa276bee2cb13108cdfc010ebffd4f565e0 /object/blob/serialize.go | |
| parent | research: dynamic packfiles do not need abbreviated hashes (diff) | |
| signature | No signature | |
object: Serialize -> Bytes
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 } |
