()
| 661 | } |
| 662 | |
| 663 | int readLeShort() throws IOException |
| 664 | { |
| 665 | int result; |
| 666 | if(pos + 1 < buffer.length) |
| 667 | { |
| 668 | result = ((buffer[pos + 0] & 0xff) | (buffer[pos + 1] & 0xff) << 8); |
| 669 | pos += 2; |
| 670 | } |
| 671 | else |
| 672 | { |
| 673 | int b0 = read(); |
| 674 | int b1 = read(); |
| 675 | if (b1 == -1) |
| 676 | throw new EOFException(); |
| 677 | result = (b0 & 0xff) | (b1 & 0xff) << 8; |
| 678 | } |
| 679 | return result; |
| 680 | } |
| 681 | |
| 682 | int readLeInt() throws IOException |
| 683 | { |
no test coverage detected