示例#1
0
 /// <summary>
 /// 读取Long值
 /// </summary>
 /// <returns></returns>
 public long GetLong()
 {
     return(ByteUtil.GetLong(Data, ReaderIndex));
 }
示例#2
0
 /// <summary>
 /// 读取byte字节
 /// </summary>
 /// <returns></returns>
 public byte GetByte()
 {
     return(ByteUtil.GetByte(Data, ReaderIndex));
 }
示例#3
0
 /// <summary>
 /// 读取int值
 /// </summary>
 /// <returns></returns>
 public int GetInt()
 {
     return(ByteUtil.GetInt(Data, ReaderIndex));
 }
示例#4
0
 /// <summary>
 /// 写字节
 /// </summary>
 /// <param name="value"></param>
 public void WriteByte(int value)
 {
     EnsureWritable(1);
     ByteUtil.SetByte(Data, WriterIndex, value);
     WriterIndex += 1;
 }