diff options
| author | 2026-04-02 06:23:30 +0000 | |
|---|---|---|
| committer | 2026-04-02 06:28:39 +0000 | |
| commit | a041d523de389b65b98a5373a8034041db2a8d83 (patch) | |
| tree | 7b423dc735f463be616045f2c3c2095a7737aca7 /object/id/objectid_byte.go | |
| parent | research: Add dynamic pack resources (diff) | |
*: Remove
Diffstat (limited to 'object/id/objectid_byte.go')
| -rw-r--r-- | object/id/objectid_byte.go | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/object/id/objectid_byte.go b/object/id/objectid_byte.go deleted file mode 100644 index 8bd8ab82..00000000 --- a/object/id/objectid_byte.go +++ /dev/null @@ -1,19 +0,0 @@ -package objectid - -// Bytes returns a copy of the object ID bytes. -func (id ObjectID) Bytes() []byte { - size := id.Algorithm().Size() - - return append([]byte(nil), id.data[:size]...) -} - -// RawBytes returns a direct byte slice view of the object ID bytes. -// -// Use Bytes when an independent copy is required. -// -// Labels: Mut-Never. -func (id *ObjectID) RawBytes() []byte { - size := id.Algorithm().Size() - - return id.data[:size:size] -} |
