Write value at index into a byte array highest to lowest byte, left to right.
(byte[] memory, int index, short value)
| 195 | */ |
| 196 | |
| 197 | public static void writeShort(byte[] memory, int index, short value) { |
| 198 | memory[index+0] = (byte)((value>>(8*1))&0xFF); |
| 199 | memory[index+1] = (byte)(value&0xFF); |
| 200 | } |
| 201 | } |