MCPcopy Create free account
hub / github.com/nutsdb/nutsdb / NewDataFile

Function NewDataFile

datafile.go:49–55  ·  view source on GitHub ↗

NewDataFile will return a new DataFile Object.

(path string, rwManager fileio.RWManager)

Source from the content-addressed store, hash-verified

47
48// NewDataFile will return a new DataFile Object.
49func NewDataFile(path string, rwManager fileio.RWManager) *DataFile {
50 dataFile := &DataFile{
51 path: path,
52 rwManager: rwManager,
53 }
54 return dataFile
55}
56
57// ReadEntry returns entry at the given off(offset).
58// payloadSize = bucketSize + keySize + valueSize

Callers 1

getDataFileWithModeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected