Beispiel #1
0
        internal void Deserialize(IBinaryReader reader, MatchParseContext context)
        {
            _docId  = (context.LongIdentifiers) ? reader.ReadInt64() : reader.ReadInt32();
            _weight = reader.ReadInt32();

            AttributesValues.Deserialize(reader, context);
        }
Beispiel #2
0
        internal void Deserialize(IBinaryReader reader, MatchParseContext context)
        {
            _docId = (context.LongIdentifiers) ? reader.ReadInt64() : reader.ReadInt32();
            _weight = reader.ReadInt32();

            AttributesValues.Deserialize(reader, context);
        }
Beispiel #3
0
        internal void Deserialize(IBinaryReader reader)
        {
            Clear();
            AttributesInfoList attributes = new AttributesInfoList();

            // read attributes list
            attributes.Deserialize(reader);

            int  count   = reader.ReadInt32();
            bool is64Bit = reader.ReadBoolean();

            MatchParseContext context = new MatchParseContext(attributes, is64Bit);

            for (int i = 0; i < count; i++)
            {
                Match match = new Match();
                match.Deserialize(reader, context);
                Add(match);
            }
        }