Exemplo n.º 1
0
        static Array3Cache()
        {
            ExpandableBufferWriter bw = ExpandableBufferWriter.CreateTemporary();
            BssomWriter            cw = new BssomWriter(bw);

            cw.WriteBuildInType(BssomType.Array3);
            cw.WriteVariableNumber(BssomBinaryPrimitives.FixUInt32NumberSize); //len
            cw.WriteUInt32FixNumber(0);                                        //count
            Empty = bw.GetBufferedArray();
        }
Exemplo n.º 2
0
        private unsafe int WriteKey(byte lastValueByteCount, byte keyType, bool keyIsNativeType, ulong keyBytes)
        {
            WriteKeyBytes(lastValueByteCount, keyBytes);
            if (keyIsNativeType)
            {
                writer.WriteNativeType(keyType);
            }
            else
            {
                writer.WriteBuildInType(keyType);
            }

            int valueOffset = GetRelativePosition();

            writer.FillUInt32FixNumber();
            return(valueOffset);
        }