Exemple #1
0
            public byte[] Serialize()
            {
                // We serialize the Type enum as ulong to be "future-proof"
                var castedType = (long)Type;

                var serializer = new TableValueBuilder
                {
                    castedType,
                    StartIndex,
                    Count,
                    IsGlobal,
                    Name
                };

                byte[] serialized = new byte[serializer.Size];

                fixed(byte *destination = serialized)
                {
                    serializer.CopyTo(destination);
                }

                return(serialized);
            }
 public TableValueCompressor(TableValueBuilder builder)
 {
     _builder = builder;
 }