MCPcopy Create free account
hub / github.com/DeAI-Artist/Linkis / NewWALEncoder

Function NewWALEncoder

consensus/wal.go:293–295  ·  view source on GitHub ↗

NewWALEncoder returns a new encoder that writes to wr.

(wr io.Writer)

Source from the content-addressed store, hash-verified

291
292// NewWALEncoder returns a new encoder that writes to wr.
293func NewWALEncoder(wr io.Writer) *WALEncoder {
294 return &WALEncoder{wr}
295}
296
297// Encode writes the custom encoding of v to the stream. It returns an error if
298// the encoded size of v is greater than 1MB. Any error encountered

Callers 6

WALGenerateNBlocksFunction · 0.70
FuzzFunction · 0.70
repairWalFileFunction · 0.70
TestWALEncoderDecoderFunction · 0.70
benchmarkWalDecodeFunction · 0.70
NewWALFunction · 0.70

Calls

no outgoing calls

Tested by 2

TestWALEncoderDecoderFunction · 0.56
benchmarkWalDecodeFunction · 0.56