Read 4-byte int with Intel (little-endian) byte order (note: RandomAccessFile.readInt has other byte order than AVI)
()
| 1413 | * (note: RandomAccessFile.readInt has other byte order than AVI) */ |
| 1414 | |
| 1415 | final int readInt() throws IOException { |
| 1416 | int result = 0; |
| 1417 | for (int shiftBy = 0; shiftBy < 32; shiftBy += 8) |
| 1418 | result |= (raFile.readByte() & 0xff) << shiftBy; |
| 1419 | return result; |
| 1420 | } |
| 1421 | |
| 1422 | /** Read 2-byte short with Intel (little-endian) byte order |
| 1423 | * (note: RandomAccessFile.readShort has other byte order than AVI) */ |
no test coverage detected