Пример #1
0
        public void Deserialize(MySpace.Common.IO.IPrimitiveReader reader)
        {
            //DataType
            dataType = (DataType)reader.ReadByte();

            //SortBy
            sortBy = (SortBy)reader.ReadByte();
        }
Пример #2
0
 public void Deserialize(MySpace.Common.IO.IPrimitiveReader reader)
 {
     cacheDataReferenceType = (CacheDataReferenceTypes)reader.ReadByte();
     indexId             = reader.ReadBytes(reader.ReadUInt16());
     id                  = reader.ReadBytes(reader.ReadUInt16());
     cacheType           = reader.ReadBytes(reader.ReadUInt16());
     returnAllSortFields = reader.ReadBoolean();
     preferredIndexName  = reader.ReadString();
     metadataRequested   = reader.ReadBoolean();
 }
Пример #3
0
        public void Deserialize(MySpace.Common.IO.IPrimitiveReader reader)
        {
            //FieldName
            fieldName = reader.ReadString();

            //IsTag
            isTag = reader.ReadBoolean();

            //Operation
            operation = (Operation)reader.ReadByte();

            //Value
            ushort len = reader.ReadUInt16();

            if (len > 0)
            {
                value = reader.ReadBytes(len);
            }

            //DataType
            dataType = (DataType)reader.ReadByte();
        }
Пример #4
0
        public void Deserialize(MySpace.Common.IO.IPrimitiveReader reader)
        {
            totalCount = reader.ReadInt32();

            int resultListCount = reader.ReadInt32();

            if (resultListCount > 0)
            {
                for (int i = 0; i < resultListCount; i++)
                {
                    TItem cdr = new TItem();
                    cdr.Deserialize(reader);
                    resultList.Add(cdr);
                }
            }

            ushort resultMetadataCount = reader.ReadUInt16();

            if (resultMetadataCount > 0)
            {
                byte[] key;
                byte[] value;
                ushort keyLength;
                ushort valueLength;

                for (int i = 0; i < resultMetadataCount; i++)
                {
                    key = value = null;

                    keyLength = reader.ReadUInt16();
                    if (keyLength > 0)
                    {
                        key = reader.ReadBytes(keyLength);
                    }

                    valueLength = reader.ReadUInt16();
                    if (valueLength > 0)
                    {
                        value = reader.ReadBytes(valueLength);
                    }

                    if (key != null)
                    {
                        resultMetadata.Add(key, value);
                    }
                }
            }

            sortDescriptor         = reader.ReadString();
            cacheDataReferenceType = (CacheDataReferenceTypes)reader.ReadByte();
        }
Пример #5
0
        public void Deserialize(MySpace.Common.IO.IPrimitiveReader reader)
        {
            //Skip byte
            reader.ReadByte();

            ushort indexIdLength = reader.ReadUInt16();

            if (indexIdLength > 0)
            {
                indexId = reader.ReadBytes(indexIdLength);
            }

            int count = reader.ReadInt32();

            if (count > 0)
            {
                TItem cdr = new TItem();
                for (int i = 0; i < count; i++)
                {
                    cdr.Deserialize(reader);
                    addList.Add(cdr);
                }
            }

            ushort metadataLength = reader.ReadUInt16();

            if (metadataLength > 0)
            {
                metadata = reader.ReadBytes(metadataLength);
            }

            count = reader.ReadInt32();
            if (count > 0)
            {
                TItem cdr = new TItem();
                for (int i = 0; i < count; i++)
                {
                    cdr.Deserialize(reader);
                    deleteList.Add(cdr);
                }
            }

            updateMetadata   = reader.ReadBoolean();
            replaceFullIndex = reader.ReadBoolean();
        }