diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-02-04 14:41:18 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-02-05 08:24:09 +0900 |
| commit | e0c720681bbce364910df241658dc987851e579a (patch) | |
| tree | bdbfbd67f26d562e8f1b2b2980a4bde6a10c94cc /internal/pkg/dir.go | |
| parent | f982b13a59a59e22d1ff3fdf791c1aa86b9420df (diff) | |
internal/pkg: standardise artifact IR
This should hopefully provide good separation between the artifact curing backend implementation and the (still work in progress) language. Making the IR parseable also guarantees uniqueness of the representation.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/pkg/dir.go')
| -rw-r--r-- | internal/pkg/dir.go | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/internal/pkg/dir.go b/internal/pkg/dir.go index d0c3668d..1d98350f 100644 --- a/internal/pkg/dir.go +++ b/internal/pkg/dir.go @@ -28,14 +28,6 @@ type FlatEntry struct { | data []byte | */ -// wordSize is the boundary which binary segments are always aligned to. -const wordSize = 8 - -// alignSize returns the padded size for aligning sz. -func alignSize(sz int) int { - return sz + (wordSize-(sz)%wordSize)%wordSize -} - // Encode encodes the entry for transmission or hashing. func (ent *FlatEntry) Encode(w io.Writer) (n int, err error) { pPathSize := alignSize(len(ent.Path)) |
