public final void pokeInt(int offset, int value, ByteOrder order) { Memory.pokeInt(address + offset, value, order.needsSwap); }
public final void writeInt(int val) throws IOException { Memory.pokeInt(scratch, 0, val, ByteOrder.BIG_ENDIAN); out.write(scratch, 0, SizeOf.INT); written += SizeOf.INT; }
/** * Writes a big-endian 32-bit integer to this file, starting at the current file * pointer. * * @param val * the int to write to this file. * @throws IOException * if an I/O error occurs while writing to this file. * @see #readInt() */ public final void writeInt(int val) throws IOException { Memory.pokeInt(scratch, 0, val, ByteOrder.BIG_ENDIAN); write(scratch, 0, SizeOf.INT); }
@Override public ByteBuffer putInt(int index, int value) { if (isReadOnly) { throw new ReadOnlyBufferException(); } checkIndex(index, SizeOf.INT); Memory.pokeInt(backingArray, arrayOffset + index, value, order); return this; }
@Override public ByteBuffer putInt(int value) { if (isReadOnly) { throw new ReadOnlyBufferException(); } int newPosition = position + SizeOf.INT; if (newPosition > limit) { throw new BufferOverflowException(); } Memory.pokeInt(backingArray, arrayOffset + position, value, order); position = newPosition; return this; }
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { ObjectInputStream.GetField fields = stream.readFields(); int addr = fields.get("address", 0); ipaddress = new byte[4]; Memory.pokeInt(ipaddress, 0, addr, ByteOrder.BIG_ENDIAN); hostName = (String) fields.get("hostName", null); family = fields.get("family", 2); }
Memory.pokeInt(replyBytes, 0, reply.getIP(), ByteOrder.BIG_ENDIAN); address = InetAddress.getByAddress(replyBytes);
public final void writeInt(int val) throws IOException { Memory.pokeInt(scratch, 0, val, ByteOrder.BIG_ENDIAN); out.write(scratch, 0, SizeOf.INT); written += SizeOf.INT; }
public final void writeInt(int val) throws IOException { Memory.pokeInt(scratch, 0, val, ByteOrder.BIG_ENDIAN); out.write(scratch, 0, SizeOf.INT); written += SizeOf.INT; }
public final void writeInt(int val) throws IOException { Memory.pokeInt(scratch, 0, val, ByteOrder.BIG_ENDIAN); out.write(scratch, 0, SizeOf.INT); written += SizeOf.INT; }
/** * Writes a big-endian 32-bit integer to this file, starting at the current file * pointer. * * @param val * the int to write to this file. * @throws IOException * if an I/O error occurs while writing to this file. * @see #readInt() */ public final void writeInt(int val) throws IOException { Memory.pokeInt(scratch, 0, val, ByteOrder.BIG_ENDIAN); write(scratch, 0, SizeOf.INT); }
public final void writeInt(int val) throws IOException { Memory.pokeInt(scratch, 0, val, ByteOrder.BIG_ENDIAN); out.write(scratch, 0, SizeOf.INT); written += SizeOf.INT; }
@Override public ByteBuffer putInt(int value) { if (isReadOnly) { throw new ReadOnlyBufferException(); } int newPosition = position + SizeOf.INT; if (newPosition > limit) { throw new BufferOverflowException(); } Memory.pokeInt(backingArray, arrayOffset + position, value, order); position = newPosition; return this; }
@Override public ByteBuffer putInt(int value) { if (isReadOnly) { throw new ReadOnlyBufferException(); } int newPosition = position + SizeOf.INT; if (newPosition > limit) { throw new BufferOverflowException(); } Memory.pokeInt(backingArray, arrayOffset + position, value, order); position = newPosition; return this; }
@Override public ByteBuffer putInt(int index, int value) { if (isReadOnly) { throw new ReadOnlyBufferException(); } checkIndex(index, SizeOf.INT); Memory.pokeInt(backingArray, arrayOffset + index, value, order); return this; }
public ByteBuffer putInt(int index, int value) { _checkWritable(); checkIndex(index, SizeOf.INT); Memory.pokeInt(backingArray, arrayOffset + index, value, isLittleEndian); return this; }
@Override public ByteBuffer putInt(int value) { if (isReadOnly) { throw new ReadOnlyBufferException(); } int newPosition = position + SizeOf.INT; if (newPosition > limit) { throw new BufferOverflowException(); } Memory.pokeInt(backingArray, arrayOffset + position, value, order); position = newPosition; return this; }
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { ObjectInputStream.GetField fields = stream.readFields(); int addr = fields.get("address", 0); ipaddress = new byte[4]; Memory.pokeInt(ipaddress, 0, addr, ByteOrder.BIG_ENDIAN); hostName = (String) fields.get("hostName", null); family = fields.get("family", 2); }
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { ObjectInputStream.GetField fields = stream.readFields(); int addr = fields.get("address", 0); ipaddress = new byte[4]; Memory.pokeInt(ipaddress, 0, addr, ByteOrder.BIG_ENDIAN); hostName = (String) fields.get("hostName", null); family = fields.get("family", 2); }
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { ObjectInputStream.GetField fields = stream.readFields(); int addr = fields.get("address", 0); ipaddress = new byte[4]; Memory.pokeInt(ipaddress, 0, addr, ByteOrder.BIG_ENDIAN); hostName = (String) fields.get("hostName", null); family = fields.get("family", 2); }