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