aboutsummaryrefslogtreecommitdiff
path: root/format/packfile/ingest/records.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-30 14:28:13 +0000
committerGravatar Runxi Yu2026-03-30 14:28:13 +0000
commita4eeb727468a178a4de0dfc718828f26740484ac (patch)
tree4318d38d49facc80e2e2186f5919fa656be3b31f /format/packfile/ingest/records.go
parentobject/store/packed: Make store own root, algo, opts (diff)
object,store/packed{,/internal/ingest}: Move from format/packfile/ingest
Diffstat (limited to 'format/packfile/ingest/records.go')
-rw-r--r--format/packfile/ingest/records.go46
1 files changed, 0 insertions, 46 deletions
diff --git a/format/packfile/ingest/records.go b/format/packfile/ingest/records.go
deleted file mode 100644
index 75f157fa..00000000
--- a/format/packfile/ingest/records.go
+++ /dev/null
@@ -1,46 +0,0 @@
-package ingest
-
-import (
- objectid "codeberg.org/lindenii/furgit/object/id"
- objecttype "codeberg.org/lindenii/furgit/object/type"
-)
-
-// objectRecord stores metadata for one packed object entry.
-type objectRecord struct {
- // offset is the entry start offset in the pack file.
- offset uint64
- // headerLen is packed entry header length in bytes.
- headerLen uint32
- // packedLen is total packed entry length in bytes.
- packedLen uint64
- // crc32 is the CRC over the full packed entry.
- crc32 uint32
- // packedType is the entry type tag from the pack stream.
- packedType objecttype.Type
- // realType is canonical object type after delta resolution.
- realType objecttype.Type
- // declaredSize is the declared output object size for this entry.
- declaredSize int64
- // dataOffset is compressed payload start offset for this entry.
- dataOffset uint64
- // baseOffset is OFS base offset when packedType is OFS delta.
- baseOffset uint64
- // baseObject is REF base object ID when packedType is REF delta.
- baseObject objectid.ObjectID
- // objectID is final resolved object ID.
- objectID objectid.ObjectID
- // resolved reports whether objectID/realType are finalized.
- resolved bool
-}
-
-// ofsDeltaRef maps one OFS delta record to its base offset.
-type ofsDeltaRef struct {
- baseOffset uint64
- recordIdx int
-}
-
-// refDeltaRef maps one REF delta record to its base object ID.
-type refDeltaRef struct {
- baseObject objectid.ObjectID
- recordIdx int
-}