internal/bufio/bufio.go
func (r *Reader) ReadInt64() int64 {
	if r.err != nil {
		return 0
	}
	var n int
	n, r.err = io.ReadFull(r.rd, r.b[:8])
	r.cnt += n
	if r.err != nil {
		return 0
	}
	return int64(binary.LittleEndian.Uint64(r.b[:8]))
}
func (r *Reader) ReadInt64() int64 {
	if r.err != nil {
		return 0
	}
	var n int
	n, r.err = io.ReadFull(r.rd, r.b[:8])
	r.cnt += n
	if r.err != nil {
		return 0
	}
	return int64(binary.LittleEndian.Uint64(r.b[:8]))
}
func ( r * Reader ) ReadInt64 ( ) int64 { if r . err != nil { return 0 } var n int n , r . err = io . ReadFull ( r . rd , r . b [ : 8 ] ) r . cnt += n if r . err != nil { return 0 } return int64 ( binary . LittleEndian . Uint64 ( r . b [ : 8 ] ) ) }
// ReadInt64 reads and returns an int64.
ReadInt64 reads and returns an int64 .