MCPcopy Create free account
hub / github.com/ByteStorage/FlyDB / Write

Method Write

engine/data/data_file.go:112–119  ·  view source on GitHub ↗
(buf []byte)

Source from the content-addressed store, hash-verified

110}
111
112func (df *DataFile) Write(buf []byte) error {
113 size, err := df.IoManager.Write(buf)
114 if err != nil {
115 return err
116 }
117 df.WriteOff += int64(size)
118 return nil
119}
120
121// WriteHintRecord writes index information to the hint file.
122func (df *DataFile) WriteHintRecord(key []byte, pst *LogRecordPst) error {

Callers 1

WriteHintRecordMethod · 0.95

Calls 1

WriteMethod · 0.65

Tested by

no test coverage detected