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

Method DecodeAndClose

protocol/nbt/qnbt/decode.go:110–113  ·  view source on GitHub ↗

DecodeAndClose decodes into dst and closes the decoder

(dst any)

Source from the content-addressed store, hash-verified

108
109// DecodeAndClose decodes into dst and closes the decoder
110func (d *Decoder) DecodeAndClose(dst any) (rootName string, err error) {
111 defer d.Close()
112 return d.Decode(dst)
113}
114
115func (d *Decoder) Decode(dst any) (rootName string, err error) {
116 id := unsafe2.InterfaceData(dst)

Callers 1

UnmarshalFunction · 0.80

Calls 2

CloseMethod · 0.95
DecodeMethod · 0.95

Tested by

no test coverage detected