(byte[] memory, int index)
| 1406 | } |
| 1407 | |
| 1408 | public static int getShort(byte[] memory, int index) { |
| 1409 | int b1 = memory[index] & 0xFF; // mask off sign-extended bits |
| 1410 | int b2 = memory[ index+1] & 0xFF; |
| 1411 | return b1 <<(8* 1)| b2; |
| 1412 | } |
| 1413 | |
| 1414 | protected static class ObjectList extends ArrayList<Object> { |
| 1415 | } |