MCPcopy Create free account
hub / github.com/pquerna/ffjson / Rewind

Method Rewind

fflib/v1/buffer.go:271–274  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

269}
270
271func (b *Buffer) Rewind(n int) error {
272 b.buf = b.buf[:len(b.buf)-n]
273 return nil
274}
275
276func (b *Buffer) Encode(v interface{}) error {
277 if b.encoder == nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected