Convert the buffer to a long, cache the value. Used for headers conversion. @return the long value
()
| 668 | * @return the long value |
| 669 | */ |
| 670 | public long getLong() { |
| 671 | if (hasLongValue) { |
| 672 | return longValue; |
| 673 | } |
| 674 | |
| 675 | if (type == T_BYTES) { |
| 676 | longValue = byteC.getLong(); |
| 677 | } else { |
| 678 | longValue = Long.parseLong(toString()); |
| 679 | } |
| 680 | |
| 681 | hasLongValue = true; |
| 682 | return longValue; |
| 683 | |
| 684 | } |
| 685 | |
| 686 | // -------------------- Future may be different -------------------- |
| 687 |
no test coverage detected