Beispiel #1
0
 public static void SerializeClusteredList <T>(ClusteredList <T> list, Serialization.IO.CompactWriter writer)
 {
     if (list == null)
     {
         writer.Write(false);
         return;
     }
     else
     {
         writer.Write(true);
         writer.Write(list.Count);
         for (int i = 0; i < list.Count; i++)
         {
             writer.WriteObject(list[i]);
         }
     }
 }
Beispiel #2
0
        public static void SerializeDD <T, V, K>(Dictionary <T, Dictionary <V, K> > dList, Serialization.IO.CompactWriter writer)
        {
            if (dList == null)
            {
                writer.Write(false);
                return;
            }
            else
            {
                writer.Write(true);
                writer.Write(dList.Count);
                for (IDictionaryEnumerator i = dList.GetEnumerator(); i.MoveNext();)
                {
                    writer.WriteObject(i.Key);

                    SerializeDictionary <V, K>((Dictionary <V, K>)i.Value, writer);
                }
            }
        }
Beispiel #3
0
 public static void SerializeClusteredArray <T>(ClusteredArray <T> array,
                                                Serialization.IO.CompactWriter writer)
 {
     if (array == null)
     {
         writer.Write(false);
         return;
     }
     else
     {
         writer.Write(true);
         writer.Write(array.Length);
         writer.Write(array.LengthThreshold);
         for (int i = 0; i < array.Length; i++)
         {
             writer.WriteObject(array[i]);
         }
     }
 }
Beispiel #4
0
 public void Serialize(Serialization.IO.CompactWriter writer)
 {
     writer.WriteObject(_element);
     writer.Write(_index);
 }
Beispiel #5
0
 /// <summary>
 /// Compact Seralize  key-value pair.
 /// </summary>
 /// <param name="writer">Compact seralization instance</param>
 public void Serialize(Serialization.IO.CompactWriter writer)
 {
     writer.WriteObject(this._key);
     writer.WriteObject(this._value);
 }
Beispiel #6
0
 public void Serialize(Serialization.IO.CompactWriter writer)
 {
     writer.Write(Name);
     writer.WriteObject(Value);
 }
Beispiel #7
0
 public void Serialize(Serialization.IO.CompactWriter writer)
 {
     writer.WriteObject(this.Name);
     writer.WriteObject(this.ResourceType);
 }
Beispiel #8
0
 public void Serialize(Serialization.IO.CompactWriter writer)
 {
     writer.Write(_shard);
     writer.WriteObject(_stats);
 }
Beispiel #9
0
 public void Serialize(Serialization.IO.CompactWriter writer)
 {
     writer.WriteObject(Token);
     writer.WriteObject(Status);
 }
Beispiel #10
0
 public void Serialize(Serialization.IO.CompactWriter writer)
 {
     writer.WriteObject(SessionId);
     writer.WriteObject(Username);
     writer.WriteObject(RouterSessionId);
 }
 public void Serialize(Serialization.IO.CompactWriter writer)
 {
     writer.Write(_jobIdentifier);
     writer.Write(Message);
     writer.WriteObject(Status);
 }
Beispiel #12
0
 public void Serialize(Serialization.IO.CompactWriter writer)
 {
     writer.WriteObject(Message);
     writer.Write(NoResponse);
 }
Beispiel #13
0
 public void Serialize(Serialization.IO.CompactWriter writer)
 {
     writer.Write(CacheSpace);
     writer.WriteObject(CachePolicy);
 }
Beispiel #14
0
 public void Serialize(Serialization.IO.CompactWriter writer)
 {
     writer.WriteObject(errorCode);
     writer.Write(message);
 }
Beispiel #15
0
 public void Serialize(Serialization.IO.CompactWriter writer)
 {
     writer.Write(_identifer);
     writer.WriteObject(_opCode);
     writer.WriteObject(_parameter);
 }
Beispiel #16
0
 public void Serialize(Serialization.IO.CompactWriter writer)
 {
     writer.Write(EnabledEviction);
     writer.WriteObject(Policy);
 }
Beispiel #17
0
 public void Serialize(Serialization.IO.CompactWriter writer)
 {
     writer.Write(QueryText);
     writer.WriteObject(Parameters);
 }
Beispiel #18
0
 public void Serialize(Serialization.IO.CompactWriter writer)
 {
     writer.Write(_count);
     writer.WriteObject(_pairs);
 }
Beispiel #19
0
 public void Serialize(Serialization.IO.CompactWriter writer)
 {
     writer.WriteObject(IsAuthenticated);
     writer.WriteObject(Token);
     writer.WriteObject(SessionId);
 }
Beispiel #20
0
 public void Serialize(Serialization.IO.CompactWriter writer)
 {
     writer.WriteObject(this.Username);
     writer.WriteObject(this.AccountType);
 }
 public void Serialize(Serialization.IO.CompactWriter writer)
 {
     writer.WriteObject(PersistenceConfiguration);
 }
Beispiel #22
0
 public void Serialize(Serialization.IO.CompactWriter writer)
 {
     writer.WriteObject(AuthorizedUsers);
 }