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