DecodeFixed32 consumes a 32-bit little-endian integer from the buffer.
()
| 215 | |
| 216 | // DecodeFixed32 consumes a 32-bit little-endian integer from the buffer. |
| 217 | func (b *Buffer) DecodeFixed32() (uint64, error) { |
| 218 | v, n := protowire.ConsumeFixed32(b.buf[b.idx:]) |
| 219 | if n < 0 { |
| 220 | return 0, protowire.ParseError(n) |
| 221 | } |
| 222 | b.idx += n |
| 223 | return uint64(v), nil |
| 224 | } |
| 225 | |
| 226 | // DecodeFixed64 consumes a 64-bit little-endian integer from the buffer. |
| 227 | func (b *Buffer) DecodeFixed64() (uint64, error) { |
no outgoing calls