MCPcopy
hub / github.com/TarsCloud/TarsGo / Reset

Method Reset

tars/protocol/codec/codec.go:169–171  ·  view source on GitHub ↗

Reset clean the buffer.

()

Source from the content-addressed store, hash-verified

167
168// Reset clean the buffer.
169func (b *Buffer) Reset() {
170 b.buf.Reset()
171}
172
173// WriteSliceUint8 write []uint8 to the buffer.
174func (b *Buffer) WriteSliceUint8(data []uint8) error {

Callers 15

TestBuffer_ResetFunction · 0.95
TestReader_ResetFunction · 0.95
DispatchMethod · 0.95
DispatchMethod · 0.95
DispatchMethod · 0.95
DispatchMethod · 0.95
DispatchMethod · 0.95
DispatchMethod · 0.95
DispatchMethod · 0.95
DispatchMethod · 0.95
DispatchMethod · 0.95
lLexMethod · 0.45

Calls

no outgoing calls

Tested by 2

TestBuffer_ResetFunction · 0.76
TestReader_ResetFunction · 0.76