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