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

Method Reset

tars/protocol/codec/codec.go:355–358  ·  view source on GitHub ↗

Reset clean the Reader.

(data []byte)

Source from the content-addressed store, hash-verified

353
354// Reset clean the Reader.
355func (b *Reader) Reset(data []byte) {
356 b.buf.Reset(data)
357 b.ref = data
358}
359
360//go:nosplit
361func (b *Reader) readHead() (ty, tag byte, err error) {

Callers 9

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

Calls 1

ResetMethod · 0.45

Tested by

no test coverage detected