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

Method Long

protocol/net/io/encoding/reader.go:82–86  ·  view source on GitHub ↗
(i *int64)

Source from the content-addressed store, hash-verified

80}
81
82func (r Reader) Long(i *int64) error {
83 d, err := r.readBytes(8)
84 *i = int64(d[0])<<56 | int64(d[1])<<48 | int64(d[2])<<40 | int64(d[3])<<32 | int64(d[4])<<24 | int64(d[5])<<16 | int64(d[6])<<8 | int64(d[7])
85 return err
86}
87
88func (r Reader) Float(f *float32) error {
89 return r.Int((*int32)(unsafe.Pointer(f)))

Callers 15

DoubleMethod · 0.95
PositionMethod · 0.95
BitSetMethod · 0.95
EncodeMethod · 0.45
DecodeMethod · 0.45
EncodeMethod · 0.45
DecodeMethod · 0.45
EncodeMethod · 0.45
EncodeMethod · 0.45
EncodeMethod · 0.45
DecodeMethod · 0.45
encodeNodeMethod · 0.45

Calls 1

readBytesMethod · 0.95

Tested by

no test coverage detected