Structure used to store a VSS project or file name.
        public override void Read(BufferReader reader, RecordHeader header)
        {
            base.Read(reader, header);

            name     = reader.ReadName();
            physical = reader.ReadString(10);
        }
        public override void Read(BufferReader reader, RecordHeader header)
        {
            base.Read(reader, header);

            name     = reader.ReadName();
            unkShort = reader.ReadInt16(); // 0 or 1
            physical = reader.ReadString(10);
        }
示例#3
0
        public override void Read(BufferReader reader, RecordHeader header)
        {
            base.Read(reader, header);

            itemType      = (ItemType)reader.ReadInt16();
            flags         = (ProjectEntryFlags)reader.ReadInt16();
            name          = reader.ReadName();
            pinnedVersion = reader.ReadInt16();
            physical      = reader.ReadString(10);
        }
        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); // ?
        }
示例#5
0
        public override void Read(BufferReader reader, RecordHeader header)
        {
            base.Read(reader, header);

            itemType = (ItemType)reader.ReadInt16();
            flags = (ProjectEntryFlags)reader.ReadInt16();
            name = reader.ReadName();
            pinnedVersion = reader.ReadInt16();
            physical = reader.ReadString(10);
        }
        public override void Read(BufferReader reader, RecordHeader header)
        {
            base.Read(reader, header);

            projectPath      = reader.ReadString(260);
            name             = reader.ReadName();
            unpinnedRevision = reader.ReadInt16();
            pinnedRevision   = reader.ReadInt16();
            unkShort         = reader.ReadInt16(); // often seems to increment
            physical         = reader.ReadString(10);
        }
示例#7
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
        }
示例#8
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
        }
示例#9
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
        }
示例#10
0
        public override void Read(BufferReader reader, RecordHeader header)
        {
            base.Read(reader, header);

            projectPath = reader.ReadString(260);
            name = reader.ReadName();
            unpinnedRevision = reader.ReadInt16();
            pinnedRevision = reader.ReadInt16();
            unkShort = reader.ReadInt16(); // often seems to increment
            physical = reader.ReadString(10);
        }
示例#11
0
        public override void Read(BufferReader reader, RecordHeader header)
        {
            base.Read(reader, header);

            name = reader.ReadName();
            oldName = reader.ReadName();
            physical = reader.ReadString(10);
        }
示例#12
0
        public override void Read(BufferReader reader, RecordHeader header)
        {
            base.Read(reader, header);

            name = reader.ReadName();
            unkShort = reader.ReadInt16(); // 0 or 1
            physical = reader.ReadString(10);
        }
示例#13
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); // ?
        }
示例#14
0
 internal VssItemName GetItemName(VssName name, string physicalName)
 {
     return new VssItemName(GetFullName(name), physicalName, name.IsProject);
 }
示例#15
0
 internal string GetFullName(VssName name)
 {
     if (name.NameFileOffset != 0)
     {
         var nameRecord = nameFile.GetName(name.NameFileOffset);
         var nameIndex = nameRecord.IndexOf(name.IsProject ? NameKind.Project : NameKind.Long);
         if (nameIndex >= 0)
         {
             return nameRecord.GetName(nameIndex);
         }
     }
     return name.ShortName;
 }
示例#16
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
        }