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

Method Close

protocol/nbt/qnbt/decode.go:59–63  ·  view source on GitHub ↗

Close closes the decoder for further use and puts it back in the decoder pool

()

Source from the content-addressed store, hash-verified

57
58// Close closes the decoder for further use and puts it back in the decoder pool
59func (d *Decoder) Close() {
60 readers.Put(d.rd)
61 d.rd = nil
62 decoders.Put(d)
63}
64
65func NewDecoder(rd io.Reader) *Decoder {
66 dc := decoders.Get().(*Decoder)

Callers 1

DecodeAndCloseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected