A DataFile represents a local file for a consecutive chunks
| 31 | |
| 32 | // A DataFile represents a local file for a consecutive chunks |
| 33 | type 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 | |
| 44 | type DataFileHeader struct { |
| 45 | magic uint64 |
nothing calls this directly
no outgoing calls
no test coverage detected