Dump() public method

public Dump ( ) : void
return void
Example #1
0
        // Methods to write Binary Serialization Record onto the stream, a record is composed of primitive types

        internal void WriteSerializationHeader(int topId, int headerId, int minorVersion, int majorVersion)
        {
            SerializationHeaderRecord record = new SerializationHeaderRecord(BinaryHeaderEnum.SerializedStreamHeader, topId, headerId, minorVersion, majorVersion);

            record.Dump();
            record.Write(this);
        }
Example #2
0
        internal void ReadSerializationHeaderRecord()
        {
            SerializationHeaderRecord serializationHeaderRecord = new SerializationHeaderRecord();

            serializationHeaderRecord.Read(this);
            serializationHeaderRecord.Dump();
            this.topId    = serializationHeaderRecord.topId > 0 ? this.objectReader.GetId((long)serializationHeaderRecord.topId) : (long)serializationHeaderRecord.topId;
            this.headerId = serializationHeaderRecord.headerId > 0 ? this.objectReader.GetId((long)serializationHeaderRecord.headerId) : (long)serializationHeaderRecord.headerId;
        }
        internal void ReadSerializationHeaderRecord()
        {
            SerializationHeaderRecord record = new SerializationHeaderRecord();

            record.Read(this);
            record.Dump();
            this.topId    = (record.topId > 0) ? this.objectReader.GetId((long)record.topId) : ((long)record.topId);
            this.headerId = (record.headerId > 0) ? this.objectReader.GetId((long)record.headerId) : ((long)record.headerId);
        }
        // Binary Stream Record Reads
        internal void ReadSerializationHeaderRecord()
        {
            SerTrace.Log(this, "ReadSerializationHeaderRecord");
            SerializationHeaderRecord record = new SerializationHeaderRecord();

            record.Read(this);
            record.Dump();
            this.topId    = (record.topId > 0 ? objectReader.GetId(record.topId) : record.topId);
            this.headerId = (record.headerId > 0 ? objectReader.GetId(record.headerId) : record.headerId);
        }
 [System.Security.SecurityCritical]  // auto-generated
 internal void ReadSerializationHeaderRecord()
 {
     SerTrace.Log( this, "ReadSerializationHeaderRecord");
     SerializationHeaderRecord record = new SerializationHeaderRecord();
         record.Read(this);
         record.Dump();
      this.topId = (record.topId > 0 ? objectReader.GetId(record.topId) : record.topId);
      this.headerId = (record.headerId > 0 ? objectReader.GetId(record.headerId) : record.headerId);
 }
        // Methods to write Binary Serialization Record onto the stream, a record is composed of primitive types

        internal void WriteSerializationHeader(int topId, int headerId, int minorVersion, int majorVersion) 
        {
            SerializationHeaderRecord record = new SerializationHeaderRecord(BinaryHeaderEnum.SerializedStreamHeader, topId, headerId, minorVersion, majorVersion); 
            record.Dump(); 
            record.Write(this);
        } 
 internal void ReadSerializationHeaderRecord()
 {
     SerializationHeaderRecord record = new SerializationHeaderRecord();
     record.Read(this);
     record.Dump();
     this.topId = (record.topId > 0) ? this.objectReader.GetId((long) record.topId) : ((long) record.topId);
     this.headerId = (record.headerId > 0) ? this.objectReader.GetId((long) record.headerId) : ((long) record.headerId);
 }