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

Method readShort

protocol/nbt/decoder.go:1046–1051  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1044}
1045
1046func (d *Decoder) readShort() (int16, error) {
1047 var data [2]byte
1048 _, err := d.rd.Read(data[:])
1049
1050 return int16(data[0])<<8 | int16(data[1]), err
1051}
1052
1053func (d *Decoder) readInt() (int32, error) {
1054 var data [4]byte

Callers 6

decodeCompoundMapMethod · 0.95
decodeCompoundStructMethod · 0.95
decodeListMethod · 0.95
decodeCompoundMethod · 0.95
_decodeListMethod · 0.95
readStringMethod · 0.95

Calls 1

ReadMethod · 0.45

Tested by

no test coverage detected