MCPcopy Create free account
hub / github.com/CrowdStrike/csproto / Reset

Method Reset

decoder.go:113–115  ·  view source on GitHub ↗

Reset moves the read offset back to the beginning of the encoded data

()

Source from the content-addressed store, hash-verified

111
112// Reset moves the read offset back to the beginning of the encoded data
113func (d *Decoder) Reset() {
114 d.offset = 0
115}
116
117// More indicates if there is more data to be read in the buffer.
118func (d *Decoder) More() bool {

Callers 6

BenchmarkDecodeFixed32Function · 0.95
BenchmarkDecodeFixed64Function · 0.95
TestDecoderSeekFunction · 0.95
ResetFunction · 0.45

Calls

no outgoing calls

Tested by 5

BenchmarkDecodeFixed32Function · 0.76
BenchmarkDecodeFixed64Function · 0.76
TestDecoderSeekFunction · 0.76