ByteBuffer.ReadBytes C# (CSharp) Method

ReadBytes() public method

public ReadBytes ( ) : byte[]
return byte[]
    public byte[] ReadBytes()
    {
        return mBinaryReader.ReadBytes(ReadInt());
    }

Usage Example

 public override CMD_Base_RespNtf Deserialize(ByteBuffer buf)
 {
     CMD_GP_AdditionScore t = this;
     // 读取buf填充结构体 todo
     t.dwLottery = buf.ReadInt();
     t.dwIngot = buf.ReadInt();
     t.dwVip = buf.ReadInt();
     t.dwCalCardTime = buf.ReadInt();
     t.dwFreeLuckyTime = buf.ReadInt();
     t.dwVipOverTimes = buf.ReadInt();
     t.dwHornCount = buf.ReadInt();
     t.VIP_Value = buf.ReadInt();
     t.dwMinimum = buf.ReadInt();
     t.szVipGift = buf.ReadString(10);
     t.bVipOverTime = buf.ReadByte();
     t.bVipGetScore = buf.ReadByte();
     t.dwRecommondScore = buf.ReadInt();
     t.dwRecommondGet = buf.ReadInt();
     t.bPhone = buf.ReadByte();
     buf.ReadBytes(3);
     t.dwRoomCard = buf.ReadInt();
     t.bCardShared = buf.ReadBool();
     buf.ReadBytes(3);
     return this;
 }
All Usage Examples Of ByteBuffer::ReadBytes