()
| 267 | } |
| 268 | |
| 269 | func (rd *realDecoder) getInt64Array() ([]int64, error) { |
| 270 | n, err := rd.getArrayLength() |
| 271 | if err != nil { |
| 272 | return nil, err |
| 273 | } |
| 274 | if n <= 0 { |
| 275 | return nil, nil |
| 276 | } |
| 277 | |
| 278 | if rd.remaining()/8 < n { |
| 279 | rd.off = len(rd.raw) |
| 280 | return nil, ErrInsufficientData |
| 281 | } |
| 282 | |
| 283 | ret := make([]int64, n) |
| 284 | for i := range ret { |
| 285 | ret[i] = int64(binary.BigEndian.Uint64(rd.raw[rd.off:])) |
| 286 | rd.off += 8 |
| 287 | } |
| 288 | return ret, nil |
| 289 | } |
| 290 | |
| 291 | func (rd *realDecoder) getStringArray() ([]string, error) { |
| 292 | n, err := rd.getArrayLength() |
nothing calls this directly
no test coverage detected