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

Function NewWALDecoder

consensus/wal.go:360–362  ·  view source on GitHub ↗

NewWALDecoder returns a new decoder that reads from rd.

(rd io.Reader)

Source from the content-addressed store, hash-verified

358
359// NewWALDecoder returns a new decoder that reads from rd.
360func NewWALDecoder(rd io.Reader) *WALDecoder {
361 return &WALDecoder{rd}
362}
363
364// Decode reads the next custom-encoded value from its reader and returns it.
365func (dec *WALDecoder) Decode() (*TimedWALMessage, error) {

Callers 10

FuzzFunction · 0.70
repairWalFileFunction · 0.70
makeBlockchainFromWALFunction · 0.70
newPlaybackFunction · 0.70
replayResetMethod · 0.70
TestWALTruncateFunction · 0.70
TestWALEncoderDecoderFunction · 0.70
benchmarkWalDecodeFunction · 0.70
SearchForEndHeightMethod · 0.70

Calls

no outgoing calls

Tested by 5

makeBlockchainFromWALFunction · 0.56
TestWALTruncateFunction · 0.56
TestWALEncoderDecoderFunction · 0.56
benchmarkWalDecodeFunction · 0.56