Lines Matching refs:value

91     public static void pokeInt(byte[] dst, int offset, int value, ByteOrder order) {
93 dst[offset++] = (byte) ((value >> 24) & 0xff);
94 dst[offset++] = (byte) ((value >> 16) & 0xff);
95 dst[offset++] = (byte) ((value >> 8) & 0xff);
96 dst[offset ] = (byte) ((value >> 0) & 0xff);
98 dst[offset++] = (byte) ((value >> 0) & 0xff);
99 dst[offset++] = (byte) ((value >> 8) & 0xff);
100 dst[offset++] = (byte) ((value >> 16) & 0xff);
101 dst[offset ] = (byte) ((value >> 24) & 0xff);
105 public static void pokeLong(byte[] dst, int offset, long value, ByteOrder order) {
107 int i = (int) (value >> 32);
112 i = (int) value;
118 int i = (int) value;
123 i = (int) (value >> 32);
131 public static void pokeShort(byte[] dst, int offset, short value, ByteOrder order) {
133 dst[offset++] = (byte) ((value >> 8) & 0xff);
134 dst[offset ] = (byte) ((value >> 0) & 0xff);
136 dst[offset++] = (byte) ((value >> 0) & 0xff);
137 dst[offset ] = (byte) ((value >> 8) & 0xff);
190 public static native void pokeByte(long address, byte value);
192 public static void pokeInt(long address, int value, boolean swap) {
194 value = Integer.reverseBytes(value);
196 pokeIntNative(address, value);
198 private static native void pokeIntNative(long address, int value);
200 public static void pokeLong(long address, long value, boolean swap) {
202 value = Long.reverseBytes(value);
204 pokeLongNative(address, value);
206 private static native void pokeLongNative(long address, long value);
208 public static void pokeShort(long address, short value, boolean swap) {
210 value = Short.reverseBytes(value);
212 pokeShortNative(address, value);
214 private static native void pokeShortNative(long address, short value);