MCPcopy Create free account
hub / github.com/ethstorage/es-node / DataFile

Struct DataFile

ethstorage/data_file.go:33–42  ·  view source on GitHub ↗

A DataFile represents a local file for a consecutive chunks

Source from the content-addressed store, hash-verified

31
32// A DataFile represents a local file for a consecutive chunks
33type DataFile struct {
34 file *os.File
35 chunkIdxStart uint64
36 chunkIdxLen uint64
37 encodeType uint64
38 maxKvSize uint64
39 chunkSize uint64
40 metaSize uint64 // per KV meta size (like commit)
41 miner common.Address // storage provider key
42}
43
44type DataFileHeader struct {
45 magic uint64

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected