MCPcopy
hub / github.com/pquerna/ffjson / Len

Method Len

fflib/v1/buffer.go:106–106  ·  view source on GitHub ↗

Len returns the number of bytes of the unread portion of the buffer; b.Len() == len(b.Bytes()).

()

Source from the content-addressed store, hash-verified

104// Len returns the number of bytes of the unread portion of the buffer;
105// b.Len() == len(b.Bytes()).
106func (b *Buffer) Len() int { return len(b.buf) - b.off }
107
108// Truncate discards all but the first n unread bytes from the buffer.
109// It panics if n is negative or greater than the length of the buffer.

Callers 4

growMethod · 0.95
WriteToMethod · 0.95
NextMethod · 0.95
TestMarshalEncoderFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestMarshalEncoderFunction · 0.76