Example #1
0
        protected override void ReadV8(ByteReader reader)
        {
            Compression = reader.ReadU32() == 2;
            CompressedLength = reader.ReadI32();
            Algorithm = reader.ReadByte();
            reader.Inflate(true, CompressedLength - 1);

            // Decompress the remainder of the header
            Length = reader.ReadI32();
            ObjectTypeID = reader.ReadGuid();
            ObjectBaseType = (ObjectBaseType) reader.ReadByte();
        }
Example #2
0
 protected override void ReadV10(ByteReader reader)
 {
     Length = reader.ReadI32();
     ObjectTypeID = reader.ReadGuid();
     ObjectBaseType = (ObjectBaseType)reader.ReadByte();
     ObjectID = reader.ReadI32();
 }
Example #3
0
 protected override void ReadV8(ByteReader reader)
 {
     Length = reader.ReadI32();
     ObjectTypeID = reader.ReadGuid();
     if (!ObjectTypeID.Equals(Element.EndOfElements))
         ObjectBaseType = (ObjectBaseType)reader.ReadByte();
 }
Example #4
0
 protected override void ReadV8(ByteReader reader)
 {
     base.ReadV8(reader);
     SegmentID = reader.ReadGuid();
     SegmentType = reader.ReadI32();
 }
Example #5
0
 private void ReadV9(ByteReader reader)
 {
     EmptyInt = reader.ReadI32();
     TocOffset = reader.ReadI32();
     LsgSegmentID = reader.ReadGuid();
     if (EmptyInt != 0)
         EmptyGuid = reader.ReadGuid();
 }
Example #6
0
 private void ReadV8(ByteReader reader)
 {
     EmptyInt = reader.ReadI32();
     TocOffset = reader.ReadI32();
     LsgSegmentID = reader.ReadGuid();
 }
Example #7
0
 public void Read(ByteReader reader)
 {
     SegmentID = reader.ReadGuid();
     SegmentType = (SegmentType)reader.ReadI32();
     SegmentLength = reader.ReadI32();
 }