public IByteBuf WriteUnsignedShort(int value) { _buf.WriteUnsignedShort(unchecked ((ushort)ByteBufferUtil.SwapShort((short)value))); return(this); }
public IByteBuf WriteShort(int value) { _buf.WriteShort(ByteBufferUtil.SwapShort((short)value)); return(this); }
public IByteBuf SetShort(int index, int value) { _buf.SetShort(index, ByteBufferUtil.SwapShort((short)value)); return(this); }
public short ReadShort() { return(ByteBufferUtil.SwapShort(_buf.ReadShort())); }
public short GetShort(int index) { return(ByteBufferUtil.SwapShort(_buf.GetShort(index))); }