public final void pokeLong(int offset, long value, ByteOrder order) { Memory.pokeLong(address + offset, value, order.needsSwap); }
public final void writeLong(long val) throws IOException { Memory.pokeLong(scratch, 0, val, ByteOrder.BIG_ENDIAN); out.write(scratch, 0, SizeOf.LONG); written += SizeOf.LONG; }
/** * Seeds this {@code SecureRandom} instance with the specified eight-byte * {@code seed}. <a href="#insecure_seed">Seeding {@code SecureRandom} may * be insecure</a>. */ @Override public void setSeed(long seed) { if (seed == 0) { // skip call from Random return; } byte[] byteSeed = new byte[SizeOf.LONG]; Memory.pokeLong(byteSeed, 0, seed, ByteOrder.BIG_ENDIAN); setSeed(byteSeed); }
/** * Writes a big-endian 64-bit long to this file, starting at the current file * pointer. * * @param val * the long to write to this file. * @throws IOException * if an I/O error occurs while writing to this file. * @see #readLong() */ public final void writeLong(long val) throws IOException { Memory.pokeLong(scratch, 0, val, ByteOrder.BIG_ENDIAN); write(scratch, 0, SizeOf.LONG); }
@Override public ByteBuffer putLong(int index, long value) { if (isReadOnly) { throw new ReadOnlyBufferException(); } checkIndex(index, SizeOf.LONG); Memory.pokeLong(backingArray, arrayOffset + index, value, order); return this; }
@Override public ByteBuffer putLong(long value) { if (isReadOnly) { throw new ReadOnlyBufferException(); } int newPosition = position + SizeOf.LONG; if (newPosition > limit) { throw new BufferOverflowException(); } Memory.pokeLong(backingArray, arrayOffset + position, value, order); position = newPosition; return this; }
buffer = new byte[1 + SizeOf.LONG + (int) count]; buffer[offset++] = TC_LONGSTRING; Memory.pokeLong(buffer, offset, count, ByteOrder.BIG_ENDIAN); offset += SizeOf.LONG;
public final void writeLong(long val) throws IOException { Memory.pokeLong(scratch, 0, val, ByteOrder.BIG_ENDIAN); out.write(scratch, 0, SizeOf.LONG); written += SizeOf.LONG; }
public final void writeLong(long val) throws IOException { Memory.pokeLong(scratch, 0, val, ByteOrder.BIG_ENDIAN); out.write(scratch, 0, SizeOf.LONG); written += SizeOf.LONG; }
public final void writeLong(long val) throws IOException { Memory.pokeLong(scratch, 0, val, ByteOrder.BIG_ENDIAN); out.write(scratch, 0, SizeOf.LONG); written += SizeOf.LONG; }
public final void writeLong(long val) throws IOException { Memory.pokeLong(scratch, 0, val, ByteOrder.BIG_ENDIAN); out.write(scratch, 0, SizeOf.LONG); written += SizeOf.LONG; }
@Override public ByteBuffer putLong(long value) { if (isReadOnly) { throw new ReadOnlyBufferException(); } int newPosition = position + SizeOf.LONG; if (newPosition > limit) { throw new BufferOverflowException(); } Memory.pokeLong(backingArray, arrayOffset + position, value, order); position = newPosition; return this; }
@Override public ByteBuffer putLong(int index, long value) { if (isReadOnly) { throw new ReadOnlyBufferException(); } checkIndex(index, SizeOf.LONG); Memory.pokeLong(backingArray, arrayOffset + index, value, order); return this; }
@Override public ByteBuffer putLong(int index, long value) { if (isReadOnly) { throw new ReadOnlyBufferException(); } checkIndex(index, SizeOf.LONG); Memory.pokeLong(backingArray, arrayOffset + index, value, order); return this; }
@Override public ByteBuffer putLong(long value) { if (isReadOnly) { throw new ReadOnlyBufferException(); } int newPosition = position + SizeOf.LONG; if (newPosition > limit) { throw new BufferOverflowException(); } Memory.pokeLong(backingArray, arrayOffset + position, value, order); position = newPosition; return this; }
@Override public ByteBuffer putLong(long value) { if (isReadOnly) { throw new ReadOnlyBufferException(); } int newPosition = position + SizeOf.LONG; if (newPosition > limit) { throw new BufferOverflowException(); } Memory.pokeLong(backingArray, arrayOffset + position, value, order); position = newPosition; return this; }
@Override public ByteBuffer putLong(long value) { if (isReadOnly) { throw new ReadOnlyBufferException(); } int newPosition = position + SizeOf.LONG; if (newPosition > limit) { throw new BufferOverflowException(); } Memory.pokeLong(backingArray, arrayOffset + position, value, order); position = newPosition; return this; }
@Override public ByteBuffer putLong(long value) { if (isReadOnly) { throw new ReadOnlyBufferException(); } int newPosition = position + SizeOf.LONG; if (newPosition > limit) { throw new BufferOverflowException(); } Memory.pokeLong(backingArray, arrayOffset + position, value, order); position = newPosition; return this; }
@Override public ByteBuffer putLong(int index, long value) { if (isReadOnly) { throw new ReadOnlyBufferException(); } checkIndex(index, SizeOf.LONG); Memory.pokeLong(backingArray, arrayOffset + index, value, order); return this; }
@Override public ByteBuffer putLong(int index, long value) { if (isReadOnly) { throw new ReadOnlyBufferException(); } checkIndex(index, SizeOf.LONG); Memory.pokeLong(backingArray, arrayOffset + index, value, order); return this; }