public void Write(BinaryFormatterWriter output)
        {
            output.WriteByte((byte)_binaryHeaderEnum);
            output.WriteInt32(_objectId);
            output.WriteString(_name);

            output.WriteInt32(_numMembers);
            for (int i = 0; i < _numMembers; i++)
            {
                output.WriteString(_memberNames[i]);
            }
            for (int i = 0; i < _numMembers; i++)
            {
                output.WriteByte((byte)_binaryTypeEnumA[i]);
            }
            for (int i = 0; i < _numMembers; i++)
            {
                BinaryTypeConverter.WriteTypeInfo(_binaryTypeEnumA[i], _typeInformationA[i], _memberAssemIds[i], output);
            }

            if (_assemId > 0)
            {
                output.WriteInt32(_assemId);
            }
        }
Beispiel #2
0
        public void Write(BinaryFormatterWriter output)
        {
            output.WriteByte((byte)_binaryHeaderEnum);
            output.WriteInt32(_objectId);
            output.WriteString(_name);

            output.WriteInt32(_numMembers);
            for (int i = 0; i < _numMembers; i++)
            {
                output.WriteString(_memberNames[i]);
            }
            for (int i = 0; i < _numMembers; i++)
            {
                output.WriteByte((byte)_binaryTypeEnumA[i]);
            }
            for (int i = 0; i < _numMembers; i++)
            {
                BinaryTypeConverter.WriteTypeInfo(_binaryTypeEnumA[i], _typeInformationA[i], _memberAssemIds[i], output);
            }

            if (_assemId > 0)
            {
                output.WriteInt32(_assemId);
            }
        }
Beispiel #3
0
 public void Write(BinaryFormatterWriter output)
 {
     if (_nullCount == 1)
     {
         output.WriteByte((byte)BinaryHeaderEnum.ObjectNull);
     }
     else if (_nullCount < 256)
     {
         output.WriteByte((byte)BinaryHeaderEnum.ObjectNullMultiple256);
         output.WriteByte((byte)_nullCount);
     }
     else
     {
         output.WriteByte((byte)BinaryHeaderEnum.ObjectNullMultiple);
         output.WriteInt32(_nullCount);
     }
 }
Beispiel #4
0
 public void Write(BinaryFormatterWriter output)
 {
     if (_nullCount == 1)
     {
         output.WriteByte((byte)BinaryHeaderEnum.ObjectNull);
     }
     else if (_nullCount < 256)
     {
         output.WriteByte((byte)BinaryHeaderEnum.ObjectNullMultiple256);
         output.WriteByte((byte)_nullCount);
     }
     else
     {
         output.WriteByte((byte)BinaryHeaderEnum.ObjectNullMultiple);
         output.WriteInt32(_nullCount);
     }
 }
        public void Write(BinaryFormatterWriter output)
        {
            output.WriteByte((byte)_binaryHeaderEnum);
            output.WriteInt32(_objectId);
            output.WriteString(_name);

            output.WriteInt32(_numMembers);
            for (int i = 0; i < _numMembers; i++)
            {
                output.WriteString(_memberNames[i]);
            }

            if (_assemId > 0)
            {
                output.WriteInt32(_assemId);
            }
        }
Beispiel #6
0
        public void Write(BinaryFormatterWriter output)
        {
            output.WriteByte((byte)_binaryHeaderEnum);
            output.WriteInt32(_objectId);
            output.WriteString(_name);

            output.WriteInt32(_numMembers);
            for (int i = 0; i < _numMembers; i++)
            {
                output.WriteString(_memberNames[i]);
            }

            if (_assemId > 0)
            {
                output.WriteInt32(_assemId);
            }
        }
Beispiel #7
0
        public void Write(BinaryFormatterWriter output)
        {
            switch (_binaryHeaderEnum)
            {
            case BinaryHeaderEnum.ArraySinglePrimitive:
                output.WriteByte((byte)_binaryHeaderEnum);
                output.WriteInt32(_objectId);
                output.WriteInt32(_lengthA[0]);
                output.WriteByte((byte)((InternalPrimitiveTypeE)_typeInformation));
                break;

            case BinaryHeaderEnum.ArraySingleString:
                output.WriteByte((byte)_binaryHeaderEnum);
                output.WriteInt32(_objectId);
                output.WriteInt32(_lengthA[0]);
                break;

            case BinaryHeaderEnum.ArraySingleObject:
                output.WriteByte((byte)_binaryHeaderEnum);
                output.WriteInt32(_objectId);
                output.WriteInt32(_lengthA[0]);
                break;

            default:
                output.WriteByte((byte)_binaryHeaderEnum);
                output.WriteInt32(_objectId);
                output.WriteByte((byte)_binaryArrayTypeEnum);
                output.WriteInt32(_rank);
                for (int i = 0; i < _rank; i++)
                {
                    output.WriteInt32(_lengthA[i]);
                }
                if ((_binaryArrayTypeEnum == BinaryArrayTypeEnum.SingleOffset) ||
                    (_binaryArrayTypeEnum == BinaryArrayTypeEnum.JaggedOffset) ||
                    (_binaryArrayTypeEnum == BinaryArrayTypeEnum.RectangularOffset))
                {
                    for (int i = 0; i < _rank; i++)
                    {
                        output.WriteInt32(_lowerBoundA[i]);
                    }
                }
                output.WriteByte((byte)_binaryTypeEnum);
                BinaryTypeConverter.WriteTypeInfo(_binaryTypeEnum, _typeInformation, _assemId, output);
                break;
            }
        }
Beispiel #8
0
 public void Write(BinaryFormatterWriter output)
 {
     switch (_binaryHeaderEnum)
     {
         case BinaryHeaderEnum.ArraySinglePrimitive:
             output.WriteByte((byte)_binaryHeaderEnum);
             output.WriteInt32(_objectId);
             output.WriteInt32(_lengthA[0]);
             output.WriteByte((byte)((InternalPrimitiveTypeE)_typeInformation));
             break;
         case BinaryHeaderEnum.ArraySingleString:
             output.WriteByte((byte)_binaryHeaderEnum);
             output.WriteInt32(_objectId);
             output.WriteInt32(_lengthA[0]);
             break;
         case BinaryHeaderEnum.ArraySingleObject:
             output.WriteByte((byte)_binaryHeaderEnum);
             output.WriteInt32(_objectId);
             output.WriteInt32(_lengthA[0]);
             break;
         default:
             output.WriteByte((byte)_binaryHeaderEnum);
             output.WriteInt32(_objectId);
             output.WriteByte((byte)_binaryArrayTypeEnum);
             output.WriteInt32(_rank);
             for (int i = 0; i < _rank; i++)
             {
                 output.WriteInt32(_lengthA[i]);
             }
             if ((_binaryArrayTypeEnum == BinaryArrayTypeEnum.SingleOffset) ||
                 (_binaryArrayTypeEnum == BinaryArrayTypeEnum.JaggedOffset) ||
                 (_binaryArrayTypeEnum == BinaryArrayTypeEnum.RectangularOffset))
             {
                 for (int i = 0; i < _rank; i++)
                 {
                     output.WriteInt32(_lowerBoundA[i]);
                 }
             }
             output.WriteByte((byte)_binaryTypeEnum);
             BinaryTypeConverter.WriteTypeInfo(_binaryTypeEnum, _typeInformation, _assemId, output);
             break;
     }
 }
 public void Write(BinaryFormatterWriter output)
 {
     output.WriteByte((byte)BinaryHeaderEnum.CrossAppDomainMap);
     output.WriteInt32(_crossAppDomainArrayIndex);
 }
Beispiel #10
0
 public void Write(BinaryFormatterWriter output)
 {
     output.WriteByte((byte)BinaryHeaderEnum.Object);
     output.WriteInt32(_objectId);
     output.WriteInt32(_mapId);
 }
Beispiel #11
0
 public void Write(BinaryFormatterWriter output)
 {
     output.WriteByte((byte)BinaryHeaderEnum.Object);
     output.WriteInt32(_objectId);
     output.WriteInt32(_mapId);
 }
Beispiel #12
0
 public void Write(BinaryFormatterWriter output)
 {
     output.WriteByte((byte)BinaryHeaderEnum.ObjectString);
     output.WriteInt32(_objectId);
     output.WriteString(_value);
 }
Beispiel #13
0
 public void Write(BinaryFormatterWriter output)
 {
     output.WriteByte((byte)BinaryHeaderEnum.CrossAppDomainString);
     output.WriteInt32(_objectId);
     output.WriteInt32(_value);
 }
Beispiel #14
0
 public void Write(BinaryFormatterWriter output)
 {
     output.WriteByte((byte)BinaryHeaderEnum.MemberReference);
     output.WriteInt32(_idRef);
 }
 public void Write(BinaryFormatterWriter output)
 {
     output.WriteByte((byte)BinaryHeaderEnum.CrossAppDomainString);
     output.WriteInt32(_objectId);
     output.WriteInt32(_value);
 }
Beispiel #16
0
 public void Write(BinaryFormatterWriter output)
 {
     output.WriteByte((byte)BinaryHeaderEnum.CrossAppDomainMap);
     output.WriteInt32(_crossAppDomainArrayIndex);
 }
Beispiel #17
0
 public void Write(BinaryFormatterWriter output)
 {
     output.WriteByte((byte)BinaryHeaderEnum.Assembly);
     output.WriteInt32(_assemId);
     output.WriteString(_assemblyString);
 }
 public void Write(BinaryFormatterWriter output)
 {
     output.WriteByte((byte)BinaryHeaderEnum.CrossAppDomainAssembly);
     output.WriteInt32(_assemId);
     output.WriteInt32(_assemblyIndex);
 }
 public void Write(BinaryFormatterWriter output)
 {
     output.WriteByte((byte)BinaryHeaderEnum.ObjectString);
     output.WriteInt32(_objectId);
     output.WriteString(_value !);
 }
 public void Write(BinaryFormatterWriter output)
 {
     output.WriteByte((byte)BinaryHeaderEnum.CrossAppDomainAssembly);
     output.WriteInt32(_assemId);
     output.WriteInt32(_assemblyIndex);
 }
Beispiel #21
0
 public void Write(BinaryFormatterWriter output)
 {
     output.WriteByte((byte)BinaryHeaderEnum.MemberReference);
     output.WriteInt32(_idRef);
 }
 public void Write(BinaryFormatterWriter output)
 {
     output.WriteByte((byte)BinaryHeaderEnum.MemberPrimitiveTyped);
     output.WriteByte((byte)_primitiveTypeEnum);
     output.WriteValue(_primitiveTypeEnum, _value);
 }
 public void Write(BinaryFormatterWriter output)
 {
     output.WriteByte((byte)BinaryHeaderEnum.MessageEnd);
 }
Beispiel #24
0
 public void Write(BinaryFormatterWriter output)
 {
     output.WriteByte((byte)BinaryHeaderEnum.MessageEnd);
 }
Beispiel #25
0
 public void Write(BinaryFormatterWriter output)
 {
     output.WriteByte((byte)BinaryHeaderEnum.MemberPrimitiveTyped);
     output.WriteByte((byte)_primitiveTypeEnum);
     output.WriteValue(_primitiveTypeEnum, _value);
 }
Beispiel #26
0
 public void Write(BinaryFormatterWriter output)
 {
     output.WriteByte((byte)BinaryHeaderEnum.Assembly);
     output.WriteInt32(_assemId);
     output.WriteString(_assemblyString);
 }