@Override public ByteBuf writeShort(int value) { buf.writeShort(ByteBufUtil.swapShort((short) value)); return this; }
@Override protected short _getShortLE(int index) { return ByteBufUtil.swapShort(buffer.getShort(index)); }
@Override protected void _setShortLE(int index, int value) { buffer.putShort(index, ByteBufUtil.swapShort((short) value)); }
@Override protected short _getShortLE(int index) { return ByteBufUtil.swapShort(buffer.getShort(index)); }
@Override public ByteBuf writeShort(int value) { buf.writeShort(ByteBufUtil.swapShort((short) value)); return this; }
@Override protected void _setShortLE(int index, int value) { buffer.putShort(index, ByteBufUtil.swapShort((short) value)); }
@Override protected short _getShortLE(int index) { return ByteBufUtil.swapShort(buffer.getShort(index)); }
@Override protected short _getShortLE(int index) { return ByteBufUtil.swapShort(buffer.getShort(index)); }
@Override public ByteBuf writeShort(int value) { buf.writeShort(ByteBufUtil.swapShort((short) value)); return this; }
private static short shortBE(ByteBuffer buffer, int offset) { return buffer.order() == ByteOrder.BIG_ENDIAN ? buffer.getShort(offset) : ByteBufUtil.swapShort(buffer.getShort(offset)); }
@Override public ByteBuf setShort(int index, int value) { buf.setShort(index, ByteBufUtil.swapShort((short) value)); return this; }
@Override public short getShort(int index) { return ByteBufUtil.swapShort(buf.getShort(index)); }
@Override protected short _getShortLE(int index) { return ByteBufUtil.swapShort(_getShort(index)); }
@Override protected void _setShortLE(int index, int value) { _setShort(index, ByteBufUtil.swapShort((short) value)); }
@Override public short readShort() { return ByteBufUtil.swapShort(buf.readShort()); }
@Override public ByteBuf setShort(int index, int value) { buf.setShort(index, ByteBufUtil.swapShort((short) value)); return this; }
@Override public short getShort(int index) { return ByteBufUtil.swapShort(buf.getShort(index)); }
@Override protected short _getShortLE(int index) { return ByteBufUtil.swapShort(_getShort(index)); }
@Override protected void _setShortLE(int index, int value) { _setShort(index, ByteBufUtil.swapShort((short) value)); }
@Override public short readShort() { return ByteBufUtil.swapShort(buf.readShort()); }