MCPcopy Create free account
hub / github.com/chronoxor/FastBinaryEncoding / Reset

Method Reset

projects/Go/proto/fbe/Buffer.go:179–182  ·  view source on GitHub ↗

Reset the current write buffer and its offset

()

Source from the content-addressed store, hash-verified

177
178// Reset the current write buffer and its offset
179func (b *Buffer) Reset() {
180 b.size = 0
181 b.offset = 0
182}
183
184// Shift the current write buffer offset
185func (b *Buffer) Shift(offset int) {

Callers 4

serialize_json.cppFile · 0.45
BenchmarkSerializeFinalFunction · 0.45
BenchmarkSerializeFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by 2

BenchmarkSerializeFinalFunction · 0.36
BenchmarkSerializeFunction · 0.36