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

Method DisallowUnknownFields

protocol/nbt/decoder.go:74–76  ·  view source on GitHub ↗
(v bool)

Source from the content-addressed store, hash-verified

72}
73
74func (d *Decoder) DisallowUnknownFields(v bool) {
75 d.disallowUnknownFields = v
76}
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) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected