コード例 #1
1
        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]);
                }
            }
            
        }
コード例 #2
0
    public void Serialise(Corba.DataOutputStream stream) {
        stream.write_octet(1);
        stream.write_boolean(true);

        stream.write_ValueOfActualType(m_cause);
        stream.write_WStringValue(m_msg);

        stream.write_boxed(m_trace, new BoxedValueAttribute("RMI:[Ljava.lang.StackTraceElement;:CD38F9930EA8AAEC:6109C59A2636DD85"));
    }
コード例 #3
0
 public override void Serialize(Corba.DataOutputStream arg) {
     // rmi data
     arg.write_octet(1);
     arg.write_octet(0);
     // offset in milliseconds
     arg.write_longlong(m_offsetInMillis);            
 }
コード例 #4
0
 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);
     }            
 }