@Override public ByteBuf order(ByteOrder endianness) { if (endianness == order()) { return this; } if (endianness == null) { throw new NullPointerException("endianness"); } return newSwappedByteBuf(); }
@Override @Deprecated public final ByteOrder order() { return unwrap().order(); }
@Override public ByteBuf order(ByteOrder endianness) { if (endianness == order()) { return this; } if (endianness == null) { throw new NullPointerException("endianness"); } return newSwappedByteBuf(); }
@Override @Deprecated public final ByteOrder order() { return unwrap().order(); }
@Override @Deprecated public final ByteOrder order() { return unwrap().order(); }
@Override public ByteBuf order(ByteOrder endianness) { if (endianness == null) { throw new NullPointerException("endianness"); } if (endianness == order()) { return this; } return newSwappedByteBuf(); }
private UnsafeDirectLittleEndian(AbstractByteBuf buf, boolean fake, AtomicLong bufferCount, AtomicLong bufferSize) { super(buf); if (!NATIVE_ORDER || buf.order() != ByteOrder.BIG_ENDIAN) { throw new IllegalStateException("Drill only runs on LittleEndian systems."); } this.bufferCount = bufferCount; this.bufferSize = bufferSize; // initCap is used if we're tracking memory release. If we're in non-debug mode, we'll skip this. this.initCap = ASSERT_ENABLED ? buf.capacity() : -1; this.wrapped = buf; this.memoryAddress = buf.memoryAddress(); }
@Override public ByteBuf order(ByteOrder endianness) { if (endianness == order()) { return this; } if (endianness == null) { throw new NullPointerException("endianness"); } return newSwappedByteBuf(); }
@Override @Deprecated public final ByteOrder order() { return unwrap().order(); }
@Override public ByteBuf order(ByteOrder endianness) { if (endianness == null) { throw new NullPointerException("endianness"); } if (endianness == order()) { return this; } return newSwappedByteBuf(); }
@Override public ByteBuf order(ByteOrder endianness) { if (endianness == null) { throw new NullPointerException("endianness"); } if (endianness == order()) { return this; } return newSwappedByteBuf(); }
@Override @Deprecated public final ByteOrder order() { return unwrap().order(); }
@Override @Deprecated public final ByteOrder order() { return unwrap().order(); }
@Override @Deprecated public final ByteOrder order() { return unwrap().order(); }
private UnsafeDirectLittleEndian(AbstractByteBuf buf, boolean fake) { super(buf); if (!NATIVE_ORDER || buf.order() != ByteOrder.BIG_ENDIAN) { throw new IllegalStateException("Arrow only runs on LittleEndian systems."); } this.wrapped = buf; this.memoryAddress = buf.memoryAddress(); }
@Override public ByteBuf order(ByteOrder endianness) { if (endianness == null) { throw new NullPointerException("endianness"); } if (endianness == order()) { return this; } return newSwappedByteBuf(); }
private UnsafeDirectLittleEndian(AbstractByteBuf buf, boolean fake, AtomicLong bufferCount, AtomicLong bufferSize) { super(buf); if (!NATIVE_ORDER || buf.order() != ByteOrder.BIG_ENDIAN) { throw new IllegalStateException("Drill only runs on LittleEndian systems."); } this.bufferCount = bufferCount; this.bufferSize = bufferSize; // initCap is used if we're tracking memory release. If we're in non-debug mode, we'll skip this. this.initCap = ASSERT_ENABLED ? buf.capacity() : -1; this.wrapped = buf; this.memoryAddress = buf.memoryAddress(); }