Structure used to store a VSS project or file name.
コード例 #1
0
        public override void Read(BufferReader reader, RecordHeader header)
        {
            base.Read(reader, header);

            name     = reader.ReadName();
            physical = reader.ReadString(10);
        }
コード例 #2
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);
        }
コード例 #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);
        }
コード例 #4
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); // ?
        }
コード例 #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);
        }
コード例 #6
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);
        }
コード例 #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
ファイル: ItemHeaderRecord.cs プロジェクト: runt18/vss2git-1
        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
ファイル: RevisionRecord.cs プロジェクト: abevoelker/vss2git
        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
ファイル: RevisionRecord.cs プロジェクト: abevoelker/vss2git
        public override void Read(BufferReader reader, RecordHeader header)
        {
            base.Read(reader, header);

            name = reader.ReadName();
            oldName = reader.ReadName();
            physical = reader.ReadString(10);
        }
コード例 #12
0
ファイル: RevisionRecord.cs プロジェクト: abevoelker/vss2git
        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
ファイル: RevisionRecord.cs プロジェクト: abevoelker/vss2git
        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
ファイル: VssDatabase.cs プロジェクト: runt18/vss2git-1
 internal VssItemName GetItemName(VssName name, string physicalName)
 {
     return new VssItemName(GetFullName(name), physicalName, name.IsProject);
 }
コード例 #15
0
ファイル: VssDatabase.cs プロジェクト: runt18/vss2git-1
 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
        }