shithub: furgit

ref: 21e2f19ae2a3baa744b6bbed997f757f0af7e01f
dir: /commitgraph/read/layer.go/

View raw version
package read

import (
	"os"

	"codeberg.org/lindenii/furgit/commitgraph/bloom"
)

type layer struct {
	path       string
	file       *os.File
	data       []byte
	numCommits uint32
	baseCount  uint32
	globalFrom uint32

	chunkOIDFanout    []byte
	chunkOIDLookup    []byte
	chunkCommit       []byte
	chunkGeneration   []byte
	chunkGenerationOv []byte
	chunkExtraEdges   []byte
	chunkBloomIndex   []byte
	chunkBloomData    []byte
	chunkBaseGraphs   []byte

	bloomSettings *bloom.Settings
}