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

Method readByte

protocol/nbt/staticReader.go:23–28  ·  view source on GitHub ↗

reads a byte

()

Source from the content-addressed store, hash-verified

21
22// reads a byte
23func (r StaticReader) readByte() (byte, error) {
24 var data [1]byte
25 _, err := r.r.Read(data[:])
26
27 return data[0], err
28}
29
30// reads a short, big endian
31func (r StaticReader) readShort() (int16, error) {

Callers 10

ReadRootMethod · 0.95
ByteMethod · 0.95
ShortMethod · 0.95
IntMethod · 0.95
LongMethod · 0.95
StringMethod · 0.95
CompoundMethod · 0.95
ReadStringMapMethod · 0.45
ReadAllMethod · 0.45
ReadMethod · 0.45

Calls 1

ReadMethod · 0.45

Tested by

no test coverage detected