MCPcopy Index your code
hub / github.com/ZeppelinMC/Zeppelin / writeLong

Method writeLong

protocol/nbt/encoder.go:71–82  ·  view source on GitHub ↗
(l int64)

Source from the content-addressed store, hash-verified

69}
70
71func (e *Encoder) writeLong(l int64) error {
72 return e.writeBytes(
73 byte(l>>56),
74 byte(l>>48),
75 byte(l>>40),
76 byte(l>>32),
77 byte(l>>24),
78 byte(l>>16),
79 byte(l>>8),
80 byte(l),
81 )
82}
83
84func (e *Encoder) writeFloat(f float32) error {
85 return e.writeInt(int32(math.Float32bits(f)))

Callers 4

writeDoubleMethod · 0.95
encodeCompoundStructMethod · 0.95
encodeCompoundMapMethod · 0.95
encodeListMethod · 0.95

Calls 1

writeBytesMethod · 0.95

Tested by

no test coverage detected