()
| 400 | } |
| 401 | |
| 402 | func (rd *realFlexibleDecoder) getArrayLength() (int, error) { |
| 403 | n, err := rd.getUVarint() |
| 404 | if err != nil { |
| 405 | return 0, err |
| 406 | } |
| 407 | |
| 408 | if n == 0 { |
| 409 | return 0, nil |
| 410 | } |
| 411 | |
| 412 | if n-1 > uint64(rd.remaining()) { |
| 413 | rd.off = len(rd.raw) |
| 414 | return 0, ErrInsufficientData |
| 415 | } |
| 416 | |
| 417 | return int(n - 1), nil |
| 418 | } |
| 419 | |
| 420 | func (rd *realFlexibleDecoder) getEmptyTaggedFieldArray() (int, error) { |
| 421 | tagCount, err := rd.getUVarint() |
no test coverage detected