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

Method ReadString

thrift/compact.go:78–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76}
77
78func (r *compactReader) ReadString() (string, error) {
79 b, err := r.ReadBytes()
80 return unsafeBytesToString(b), err
81}
82
83func (r *compactReader) ReadLength() (int, error) {
84 n, err := r.readUvarint("length", math.MaxInt32)

Callers 1

ReadMessageMethod · 0.95

Calls 2

ReadBytesMethod · 0.95
unsafeBytesToStringFunction · 0.85

Tested by

no test coverage detected