ReadUint64 reads a uint64 and sets error on bounds violation
(err *Error)
| 371 | |
| 372 | // ReadUint64 reads a uint64 and sets error on bounds violation |
| 373 | func (b *ByteBuffer) ReadUint64(err *Error) uint64 { |
| 374 | if b.readerIndex+8 > len(b.data) { |
| 375 | if !b.fill(8, err) { |
| 376 | return 0 |
| 377 | } |
| 378 | } |
| 379 | i := binary.LittleEndian.Uint64(b.data[b.readerIndex:]) |
| 380 | b.readerIndex += 8 |
| 381 | return i |
| 382 | } |
| 383 | |
| 384 | // ReadInt32 reads an int32 and sets error on bounds violation |
| 385 | func (b *ByteBuffer) ReadInt32(err *Error) int32 { |
no test coverage detected