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

Method String

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

String returns the contents of the unread portion of the buffer as a string. If the Buffer is a nil pointer, it returns " ".

()

Source from the content-addressed store, hash-verified

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>".
96func (b *Buffer) String() string {
97 if b == nil {
98 // Special case, useful in debugging.
99 return "<nil>"
100 }
101 return string(b.buf[b.off:])
102}
103
104// Len returns the number of bytes of the unread portion of the buffer;
105// b.Len() == len(b.Bytes()).

Callers 3

tsliceStringFunction · 0.95
tplStrFunction · 0.95
getXValueFunction · 0.95

Calls

no outgoing calls

Tested by 2

tsliceStringFunction · 0.76
getXValueFunction · 0.76