Example #1
0
        void IUnorderedTypeCodec <TDocument> .EncodeUnorderedSelfTerm(ref SliceWriter output, TDocument value)
        {
            var packed = EncodeInternal(value);

            Contract.Assert(packed.Count >= 0);
            output.WriteVarInt32((uint)packed.Count);
            output.WriteBytes(in packed);
        }