Skip() public method

public Skip ( int bytes ) : void
bytes int
return void
Esempio n. 1
0
        public override void Read(BufferReader reader, RecordHeader header)
        {
            base.Read(reader, header);

            name     = reader.ReadName();
            physical = reader.ReadString(10);
            reader.Skip(2); // 0?
            archivePath = reader.ReadString(260);
            reader.Skip(4); // ?
        }
Esempio n. 2
0
        public override void Read(BufferReader reader, RecordHeader header)
        {
            base.Read(reader, header);

            kindCount = reader.ReadInt16();
            reader.Skip(2); // unknown
            kinds = new NameKind[kindCount];
            names = new string[kindCount];
            var baseOffset = reader.Offset + (kindCount * 4);

            for (int i = 0; i < kindCount; ++i)
            {
                kinds[i] = (NameKind)reader.ReadInt16();
                var nameOffset = reader.ReadInt16();
                var saveOffset = reader.Offset;
                try
                {
                    reader.Offset = baseOffset + nameOffset;
                    names[i]      = reader.ReadString(reader.Remaining);
                }
                finally
                {
                    reader.Offset = saveOffset;
                }
            }
        }
Esempio n. 3
0
 public override void Read(BufferReader reader, RecordHeader header)
 {
     base.Read(reader, header);
     
     kindCount = reader.ReadInt16();
     reader.Skip(2); // unknown
     kinds = new NameKind[kindCount];
     names = new string[kindCount];
     var baseOffset = reader.Offset + (kindCount * 4);
     for (int i = 0; i < kindCount; ++i)
     {
         kinds[i] = (NameKind)reader.ReadInt16();
         var nameOffset = reader.ReadInt16();
         var saveOffset = reader.Offset;
         try
         {
             reader.Offset = baseOffset + nameOffset;
             names[i] = reader.ReadString(reader.Remaining);
         }
         finally
         {
             reader.Offset = saveOffset;
         }
     }
 }
Esempio n. 4
0
        public override void Read(BufferReader reader, RecordHeader header)
        {
            base.Read(reader, header);

            reader.Skip(16); // reserved; always 0
            eofOffset = reader.ReadInt32();
            // remaining reserved; always 0
        }
Esempio n. 5
0
        public override void Read(BufferReader reader, RecordHeader header)
        {
            base.Read(reader, header);

            prevDeltaOffset = reader.ReadInt32();
            reader.Skip(4); // reserved; always 0
            projectPath = reader.ReadString(260);
        }
Esempio n. 6
0
        public override void Read(BufferReader reader, RecordHeader header)
        {
            base.Read(reader, header);

            reader.Skip(16); // reserved; always 0
            EofOffset = reader.ReadInt32();
            // remaining reserved; always 0
        }
Esempio n. 7
0
        public override void Read(BufferReader reader, RecordHeader header)
        {
            base.Read(reader, header);

            parentProject = reader.ReadString(260);
            parentFile = reader.ReadString(8);
            reader.Skip(4); // reserved; always 0
            totalItems = reader.ReadInt16();
            subprojects = reader.ReadInt16();
        }
Esempio n. 8
0
        public override void Read(BufferReader reader, RecordHeader header)
        {
            base.Read(reader, header);

            ParentProject = reader.ReadString(260);
            ParentFile    = reader.ReadString(8);
            reader.Skip(4); // reserved; always 0
            TotalItems  = reader.ReadInt16();
            Subprojects = reader.ReadInt16();
        }
Esempio n. 9
0
 public void Read(BufferReader reader)
 {
     command = (DeltaCommand)reader.ReadInt16();
     reader.Skip(2); // unknown
     offset = reader.ReadInt32();
     length = reader.ReadInt32();
     if (command == DeltaCommand.WriteLog)
     {
         data = reader.GetBytes(length);
     }
 }
Esempio n. 10
0
 public void Read(BufferReader reader)
 {
     command = (DeltaCommand)reader.ReadInt16();
     reader.Skip(2); // unknown
     offset = reader.ReadInt32();
     length = reader.ReadInt32();
     if (command == DeltaCommand.WriteLog)
     {
         data = reader.GetBytes(length);
     }
 }
Esempio n. 11
0
        public override void Read(BufferReader reader, RecordHeader header)
        {
            base.Read(reader, header);

            Flags      = (FileFlags)reader.ReadInt16();
            BranchFile = reader.ReadString(8);
            reader.Skip(2); // reserved; always 0
            BranchOffset        = reader.ReadInt32();
            ProjectOffset       = reader.ReadInt32();
            BranchCount         = reader.ReadInt16();
            ProjectCount        = reader.ReadInt16();
            FirstCheckoutOffset = reader.ReadInt32();
            LastCheckoutOffset  = reader.ReadInt32();
            DataCrc             = (uint)reader.ReadInt32();
            reader.Skip(8); // reserved; always 0
            LastRevDateTime      = reader.ReadDateTime();
            ModificationDateTime = reader.ReadDateTime();
            CreationDateTime     = reader.ReadDateTime();
            // remaining appears to be trash
        }
Esempio n. 12
0
        public static Action PeekAction(BufferReader reader)
        {
            int saveOffset = reader.Offset;

            try
            {
                reader.Skip(4);
                return((Action)reader.ReadInt16());
            }
            finally
            {
                reader.Offset = saveOffset;
            }
        }
Esempio n. 13
0
        public override void Read(BufferReader reader, RecordHeader header)
        {
            base.Read(reader, header);

            itemType       = (ItemType)reader.ReadInt16();
            revisions      = reader.ReadInt16();
            name           = reader.ReadName();
            firstRevision  = reader.ReadInt16();
            dataExt        = reader.ReadString(2);
            firstRevOffset = reader.ReadInt32();
            lastRevOffset  = reader.ReadInt32();
            eofOffset      = reader.ReadInt32();
            rightsOffset   = reader.ReadInt32();
            reader.Skip(16); // reserved; always 0
        }
Esempio n. 14
0
        public override void Read(BufferReader reader, RecordHeader header)
        {
            base.Read(reader, header);

            itemType = (ItemType)reader.ReadInt16();
            revisions = reader.ReadInt16();
            name = reader.ReadName();
            firstRevision = reader.ReadInt16();
            dataExt = reader.ReadString(2);
            firstRevOffset = reader.ReadInt32();
            lastRevOffset = reader.ReadInt32();
            eofOffset = reader.ReadInt32();
            rightsOffset = reader.ReadInt32();
            reader.Skip(16); // reserved; always 0
        }
Esempio n. 15
0
        public override void Read(BufferReader reader, RecordHeader header)
        {
            base.Read(reader, header);

            itemType      = (ItemType)reader.ReadInt16();
            revisions     = reader.ReadInt16();
            name          = reader.ReadName();
            firstRevision = reader.ReadInt16();
            dataExt       = reader.ReadString(2);
            if (Type.GetType("Mono.Runtime") != null)
            {
                dataExt = dataExt.ToLower();
            }
            firstRevOffset = reader.ReadInt32();
            lastRevOffset  = reader.ReadInt32();
            eofOffset      = reader.ReadInt32();
            rightsOffset   = reader.ReadInt32();
            reader.Skip(16); // reserved; always 0
        }
Esempio n. 16
0
        public override void Read(BufferReader reader, RecordHeader header)
        {
            base.Read(reader, header);

            flags = (FileFlags)reader.ReadInt16();
            branchFile = reader.ReadString(8);
            reader.Skip(2); // reserved; always 0
            branchOffset = reader.ReadInt32();
            projectOffset = reader.ReadInt32();
            branchCount = reader.ReadInt16();
            projectCount = reader.ReadInt16();
            firstCheckoutOffset = reader.ReadInt32();
            lastCheckoutOffset = reader.ReadInt32();
            dataCrc = (uint)reader.ReadInt32();
            reader.Skip(8); // reserved; always 0
            lastRevDateTime = reader.ReadDateTime();
            modificationDateTime = reader.ReadDateTime();
            creationDateTime = reader.ReadDateTime();
            // remaining appears to be trash
        }
Esempio n. 17
0
 public static Action PeekAction(BufferReader reader)
 {
     int saveOffset = reader.Offset;
     try
     {
         reader.Skip(4);
         return (Action)reader.ReadInt16();
     }
     finally
     {
         reader.Offset = saveOffset;
     }
 }
Esempio n. 18
0
        public override void Read(BufferReader reader, RecordHeader header)
        {
            base.Read(reader, header);

            prevDeltaOffset = reader.ReadInt32();
            reader.Skip(4); // reserved; always 0
            projectPath = reader.ReadString(260);
        }
Esempio n. 19
0
        public override void Read(BufferReader reader, RecordHeader header)
        {
            base.Read(reader, header);

            name = reader.ReadName();
            physical = reader.ReadString(10);
            reader.Skip(2); // 0?
            archivePath = reader.ReadString(260);
            reader.Skip(4); // ?
        }
Esempio n. 20
0
        public override void Read(BufferReader reader, RecordHeader header)
        {
            base.Read(reader, header);

            itemType = (ItemType)reader.ReadInt16();
            revisions = reader.ReadInt16();
            name = reader.ReadName();
            firstRevision = reader.ReadInt16();
            dataExt = reader.ReadString(2);
            if (Type.GetType("Mono.Runtime") != null)
            {
                dataExt = dataExt.ToLower();
            }
            firstRevOffset = reader.ReadInt32();
            lastRevOffset = reader.ReadInt32();
            eofOffset = reader.ReadInt32();
            rightsOffset = reader.ReadInt32();
            reader.Skip(16); // reserved; always 0
        }