aboutsummaryrefslogtreecommitdiff
path: root/object/blob/parse.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-05-24 07:19:19 +0000
committerGravatar Runxi Yu2026-05-24 07:19:19 +0000
commit2aae0e0e0beca49b3d9b7fb051986a425ce91643 (patch)
treecefb6cae76f6cd3463c4150851ac6c65b8f14e6f /object/blob/parse.go
parentREFACTOR: update progress (diff)
object/blob: Start
Diffstat (limited to 'object/blob/parse.go')
-rw-r--r--object/blob/parse.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/object/blob/parse.go b/object/blob/parse.go
new file mode 100644
index 00000000..b98b0f14
--- /dev/null
+++ b/object/blob/parse.go
@@ -0,0 +1,8 @@
+package blob
+
+// Parse decodes a blob object body.
+//
+// Labels: Deps-Owned, Life-Independent
+func Parse(body []byte) (*Blob, error) {
+ return &Blob{Data: append([]byte(nil), body...)}, nil
+}