public IByteBuf SetUnsignedShort(int index, int value) { unchecked { _buf.SetUnsignedShort(index, (ushort)ByteBufferUtil.SwapShort((short)value)); } return(this); }
public IByteBuf SetUnsignedInt(int index, uint value) { unchecked { _buf.SetUnsignedInt(index, (uint)ByteBufferUtil.SwapInt((int)value)); } return(this); }
public IByteBuf WriteUnsignedInt(uint value) { unchecked { _buf.WriteUnsignedInt((uint)ByteBufferUtil.SwapInt((int)value)); } return(this); }
public IByteBuf WriteInt(int value) { _buf.WriteInt(ByteBufferUtil.SwapInt(value)); return(this); }
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 long ReadLong() { return(ByteBufferUtil.SwapLong(_buf.ReadLong())); }
public int ReadInt() { return(ByteBufferUtil.SwapInt(_buf.ReadInt())); }
public IByteBuf SetLong(int index, long value) { _buf.SetLong(index, ByteBufferUtil.SwapLong(value)); return(this); }
public IByteBuf SetInt(int index, int value) { _buf.SetInt(index, ByteBufferUtil.SwapInt(value)); return(this); }
public IByteBuf SetShort(int index, int value) { _buf.SetShort(index, ByteBufferUtil.SwapShort((short)value)); return(this); }
public long GetLong(int index) { return(ByteBufferUtil.SwapLong(_buf.GetLong(index))); }
public int GetInt(int index) { return(ByteBufferUtil.SwapInt(_buf.GetInt(index))); }
public short GetShort(int index) { return(ByteBufferUtil.SwapShort(_buf.GetShort(index))); }
public IByteBuf WriteLong(long value) { _buf.WriteLong(ByteBufferUtil.SwapLong(value)); return(this); }
public string ToString(Encoding encoding) { return(ByteBufferUtil.DecodeString(this, ReaderIndex, ReadableBytes, encoding)); }
public short ReadShort() { return(ByteBufferUtil.SwapShort(_buf.ReadShort())); }