Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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.
169
func
(b *Buffer) Reset() {
170
b.buf.Reset()
171
}
172
173
// WriteSliceUint8 write []uint8 to the buffer.
174
func
(b *Buffer) WriteSliceUint8(data []uint8) error {
Callers
15
TestBuffer_Reset
Function · 0.95
TestReader_Reset
Function · 0.95
Dispatch
Method · 0.95
Dispatch
Method · 0.95
Dispatch
Method · 0.95
Dispatch
Method · 0.95
Dispatch
Method · 0.95
Dispatch
Method · 0.95
Dispatch
Method · 0.95
Dispatch
Method · 0.95
Dispatch
Method · 0.95
lLex
Method · 0.45
Calls
no outgoing calls
Tested by
2
TestBuffer_Reset
Function · 0.76
TestReader_Reset
Function · 0.76