public void ToData(DataOutput output)
 {
     if (m_initialized)
     {
         output.WriteBoolean(m_cacheableBoolean);
         output.WriteInt32(m_cacheableInt32);
         output.WriteArrayLen(m_cacheableInt32Array.Length);
         foreach (int item in m_cacheableInt32Array)
         {
             output.WriteInt32(item);
         }
         output.WriteUTF(m_cacheableFileName);
         output.WriteUTF(m_CacheableStringASCII);
         output.WriteArrayLen(m_cacheableStringArray.Length);
         foreach (string item in m_cacheableStringArray)
         {
             output.WriteUTF(item);
         }
         output.WriteDictionary((System.Collections.IDictionary)m_cacheableHashMap);
         output.WriteArrayLen(m_cacheableVector.Count);
         foreach (object item in m_cacheableVector)
         {
             output.WriteObject(item);
         }
     }
 }
Exemple #2
0
 public override void ToData(DataOutput output)
 {
     output.WriteInt32(acctId);
     output.WriteObject(customerName);
     output.WriteDouble(netWorth);
     output.WriteDictionary((IDictionary)assets); // rjk currently not work as WriteDictionary API is not generic
     output.WriteInt64(timestamp);
 }
Exemple #3
0
 public void ToData(DataOutput output)
 {
     output.WriteInt32(m_id);
     output.WriteUTF(m_pkid);
     output.WriteObject(m_position1);
     output.WriteObject(m_position2);
     output.WriteDictionary((System.Collections.IDictionary)m_positions);
     output.WriteUTF(m_type);
     output.WriteUTF(m_status);
     output.WriteObject(m_names);
     output.WriteBytes(m_newVal);
     output.WriteDate(m_creationDate);
     output.WriteBytes(m_arrayNull);
     output.WriteBytes(m_arrayZeroSize);
 }
Exemple #4
0
 public void ToData(DataOutput output)
 {
     output.WriteInt32(m_id);
     output.WriteUTF(m_pkid);
     output.WriteObject(m_position1);
     output.WriteObject(m_position2);
     output.WriteDictionary((System.Collections.IDictionary)m_positions);
     output.WriteUTF(m_type);
     output.WriteUTF(m_status);
     output.WriteObject(m_names);
     output.WriteBytes(m_newVal);
     //output.WriteObject((IGFSerializable)(object)m_creationDate); // VJR: TODO
     //output.WriteObject(CacheableDate.Create(m_creationDate));
     output.WriteDate(m_creationDate);
     output.WriteBytes(m_arrayNull);
     output.WriteBytes(m_arrayZeroSize);
 }