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

Function Unmarshal

protocol/nbt/decoder.go:79–81  ·  view source on GitHub ↗

Unmarshal is the same as making a new decoder and using it on a bytes.Reader of the input

(input []byte, v any)

Source from the content-addressed store, hash-verified

77
78// Unmarshal is the same as making a new decoder and using it on a bytes.Reader of the input
79func Unmarshal(input []byte, v any) (rootName string, err error) {
80 return NewDecoder(bytes.NewReader(input)).Decode(v)
81}
82
83func (d *Decoder) DecodeRootCompound(v any) (rootName string, err error) {
84 val := reflect.ValueOf(v)

Callers 1

OpenFunction · 0.92

Calls 2

NewDecoderFunction · 0.70
DecodeMethod · 0.65

Tested by

no test coverage detected