MCPcopy Create free account
hub / github.com/ZeppelinMC/Zeppelin / String

Function String

protocol/net/io/encoding/encoding.go:153–160  ·  view source on GitHub ↗
(data []byte)

Source from the content-addressed store, hash-verified

151}
152
153func String(data []byte) (string, error) {
154 l, strd, err := VarInt(data)
155 if err != nil {
156 return "", err
157 }
158
159 return unsafe.String(unsafe.SliceData(strd), l), nil
160}
161
162type BitSet []int64
163

Callers

nothing calls this directly

Calls 2

VarIntFunction · 0.70
StringMethod · 0.45

Tested by

no test coverage detected