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

Method readLong

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

Source from the content-addressed store, hash-verified

1058}
1059
1060func (d *Decoder) readLong() (int64, error) {
1061 var data [8]byte
1062 _, err := d.rd.Read(data[:])
1063
1064 return int64(data[0])<<56 | int64(data[1])<<48 | int64(data[2])<<40 | int64(data[3])<<32 | int64(data[4])<<24 | int64(data[5])<<16 | int64(data[6])<<8 | int64(data[7]), err
1065}
1066
1067func (d *Decoder) readFloat() (float32, error) {
1068 i, err := d.readInt()

Callers 6

decodeCompoundMapMethod · 0.95
decodeCompoundStructMethod · 0.95
decodeListMethod · 0.95
decodeCompoundMethod · 0.95
_decodeListMethod · 0.95
readDoubleMethod · 0.95

Calls 1

ReadMethod · 0.45

Tested by

no test coverage detected