MCPcopy Index your code
hub / github.com/vmihailenco/msgpack / string

Method string

decode_string.go:46–52  ·  view source on GitHub ↗
(c byte)

Source from the content-addressed store, hash-verified

44}
45
46func (d *Decoder) string(c byte) (string, error) {
47 n, err := d.bytesLen(c)
48 if err != nil {
49 return "", err
50 }
51 return d.stringWithLen(n)
52}
53
54func (d *Decoder) stringWithLen(n int) (string, error) {
55 if n <= 0 {

Callers 4

DecodeStringMethod · 0.95
DecodeTimeMethod · 0.95
DecodeInterfaceMethod · 0.95
DecodeInterfaceLooseMethod · 0.95

Calls 2

bytesLenMethod · 0.95
stringWithLenMethod · 0.95

Tested by

no test coverage detected