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

Method Bytes

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

Bytes returns a slice of the contents of the unread portion of the buffer; len(b.Bytes()) == b.Len(). If the caller changes the contents of the returned slice, the contents of the buffer will change provided there are no intervening method calls on the Buffer.

()

Source from the content-addressed store, hash-verified

90// returned slice, the contents of the buffer will change provided there
91// are no intervening method calls on the Buffer.
92func (b *Buffer) Bytes() []byte { return b.buf[b.off:] }
93
94// String returns the contents of the unread portion of the buffer
95// as a string. If the Buffer is a nil pointer, it returns "<nil>".

Callers 5

TestWriteJsonStringFunction · 0.95
RunMethod · 0.95
extractFieldsFunction · 0.95
TestHTMLEscapeFunction · 0.95
MarshalFunction · 0.95

Calls

no outgoing calls

Tested by 2

TestWriteJsonStringFunction · 0.76
TestHTMLEscapeFunction · 0.76