MCPcopy Create free account
hub / github.com/segmentio/encoding / ReadString

Method ReadString

thrift/binary.go:97–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95}
96
97func (r *binaryReader) ReadString() (string, error) {
98 b, err := r.ReadBytes()
99 return unsafeBytesToString(b), err
100}
101
102func (r *binaryReader) ReadLength() (int, error) {
103 b, err := r.read(4)

Callers 1

ReadMessageMethod · 0.95

Calls 2

ReadBytesMethod · 0.95
unsafeBytesToStringFunction · 0.85

Tested by

no test coverage detected