public override void Serialize(Corba.DataOutputStream arg) { // rmi data arg.write_octet(1); arg.write_octet(1); // size: is equal to size of m_elements int size = m_elements.Length; arg.write_long(size); if (m_backArraySize < size) { m_backArraySize = size; } arg.write_long(m_backArraySize); for (int i = 0; i < size; i++) { bool isByRef = false; if (m_elements[i] != null) { isByRef = ClsToIdlMapper.IsMappedToConcreteInterface(m_elements[i].GetType()); } arg.write_boolean(isByRef); if (!isByRef) { arg.write_ValueOfActualType(m_elements[i]); } else { arg.write_Object((MarshalByRefObject)m_elements[i]); } } }
public override void Serialize(Corba.DataOutputStream stream) { m_data.Serialise(stream); stream.write_long(m_number); }
public override void Serialize(Corba.DataOutputStream target) { // rmi data target.write_octet(1); target.write_octet(1); // load factor target.write_float(m_loadFactor); // treshhold, ignore (calculated) target.write_long(Treshhold); // capacity target.write_long(m_capacity); // size target.write_long(m_buckets.Length); // buckets for (int i = 0; i < m_buckets.Length; i++) { WriteObject(m_buckets[i].Key, target); WriteObject(m_buckets[i].Value, target); } }