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

Method Short

protocol/net/io/encoding/reader.go:65–69  ·  view source on GitHub ↗
(i *int16)

Source from the content-addressed store, hash-verified

63}
64
65func (r Reader) Short(i *int16) error {
66 d, err := r.readBytes(2)
67 *i = int16(d[0])<<8 | int16(d[1])
68 return err
69}
70func (r Reader) Ushort(i *uint16) error {
71 d, err := r.readBytes(2)
72 *i = uint16(d[0])<<8 | uint16(d[1])

Callers 15

nbtStringMethod · 0.95
EncodeMethod · 0.45
DecodeMethod · 0.45
EncodeMethod · 0.45
EncodeMethod · 0.45
DecodeMethod · 0.45
EncodeMethod · 0.45
DecodeMethod · 0.45
EncodeMethod · 0.45
DecodeMethod · 0.45
DecodeMethod · 0.45
EncodeMethod · 0.45

Calls 1

readBytesMethod · 0.95

Tested by

no test coverage detected