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

Method writeShort

protocol/nbt/encoder.go:55–60  ·  view source on GitHub ↗
(s int16)

Source from the content-addressed store, hash-verified

53}
54
55func (e *Encoder) writeShort(s int16) error {
56 return e.writeBytes(
57 byte(s>>8),
58 byte(s),
59 )
60}
61
62func (e *Encoder) writeInt(i int32) error {
63 return e.writeBytes(

Callers 4

writeStringMethod · 0.95
encodeCompoundStructMethod · 0.95
encodeCompoundMapMethod · 0.95
encodeListMethod · 0.95

Calls 1

writeBytesMethod · 0.95

Tested by

no test coverage detected