DecodeFixed64 consumes a 64-bit little-endian integer from the buffer.
()
| 225 | |
| 226 | // DecodeFixed64 consumes a 64-bit little-endian integer from the buffer. |
| 227 | func (b *Buffer) DecodeFixed64() (uint64, error) { |
| 228 | v, n := protowire.ConsumeFixed64(b.buf[b.idx:]) |
| 229 | if n < 0 { |
| 230 | return 0, protowire.ParseError(n) |
| 231 | } |
| 232 | b.idx += n |
| 233 | return uint64(v), nil |
| 234 | } |
| 235 | |
| 236 | // DecodeRawBytes consumes a length-prefixed raw bytes from the buffer. |
| 237 | // If alloc is specified, it returns a copy the raw bytes |
no outgoing calls