()
| 249 | } |
| 250 | |
| 251 | func (d *Decbuf) Be64() uint64 { |
| 252 | if d.E != nil { |
| 253 | return 0 |
| 254 | } |
| 255 | if len(d.B) < 8 { |
| 256 | d.E = ErrInvalidSize |
| 257 | return 0 |
| 258 | } |
| 259 | x := binary.BigEndian.Uint64(d.B) |
| 260 | d.B = d.B[8:] |
| 261 | return x |
| 262 | } |
| 263 | |
| 264 | func (d *Decbuf) Be64Float64() float64 { |
| 265 | return math.Float64frombits(d.Be64()) |
no outgoing calls