(v []byte, idx int)
| 168 | } |
| 169 | |
| 170 | func getUint32At(v []byte, idx int) (uint32, error) { |
| 171 | if idx+4 > len(v) { |
| 172 | return 0, errors.AssertionFailedf( |
| 173 | "insufficient bytes to decode uint32 int value: %+v", v) |
| 174 | } |
| 175 | |
| 176 | return uint32(v[idx])<<24 | |
| 177 | uint32(v[idx+1])<<16 | |
| 178 | uint32(v[idx+2])<<8 | |
| 179 | uint32(v[idx+3]), nil |
| 180 | } |
| 181 | |
| 182 | type encodedArrayIterator struct { |
| 183 | curDataIdx int |
no outgoing calls
no test coverage detected