コード例 #1
0
 public int GetByteSize()
 {
     return(SessionId.GetByteSize() +
            BinSerialize.GetSizeForPackedUnsignedInteger(FieldId) +
            BinSerialize.GetSizeForPackedUnsignedInteger(StartIndex) +
            BinSerialize.GetSizeForPackedUnsignedInteger(Take));
 }
コード例 #2
0
 public int GetByteSize()
 {
     return(SessionId.GetByteSize() +
            BinSerialize.GetSizeForPackedUnsignedInteger(Counter) +
            sizeof(byte) /* Flags */ +
            sizeof(byte) /* Count */ +
            (Groups?.Count * sizeof(ushort) ?? 0));
 }
コード例 #3
0
 public virtual int GetByteSize()
 {
     return(SessionId.GetByteSize() + BinSerialize.GetSizeForPackedUnsignedInteger(FieldIndex));
 }