Пример #1
0
 public PdbRecordInfo(byte[] bytes)
 {
     if (bytes.Length != 8) throw new ArgumentException("Invalid data", "bytes");
     var offsetData = bytes.Take(4);
     if (BitConverter.IsLittleEndian) offsetData = offsetData.Reverse();
     offset = BitConverter.ToUInt32(offsetData.ToArray(), 0);
     flags = (PdbRecordAttributes)(bytes[4] >> 4 & 0x0f); //other bits are Category, which I don't know
     uniqueId = bytes[5] << 16 | bytes[6] << 8 | bytes[7];
 }
Пример #2
0
        public PdbRecordInfo(byte[] bytes)
        {
            if (bytes.Length != 8)
            {
                throw new ArgumentException("Invalid data", "bytes");
            }
            var offsetData = bytes.Take(4);

            if (BitConverter.IsLittleEndian)
            {
                offsetData = offsetData.Reverse();
            }
            offset   = BitConverter.ToUInt32(offsetData.ToArray(), 0);
            flags    = (PdbRecordAttributes)(bytes[4] >> 4 & 0x0f);          //other bits are Category, which I don't know
            uniqueId = bytes[5] << 16 | bytes[6] << 8 | bytes[7];
        }
Пример #3
0
 public PdbRecordInfo(long offset, byte flags, int uniqueId)
 {
     this.offset = offset;
     this.flags = (PdbRecordAttributes)(flags >> 4 & 0x0f);
     this.uniqueId = uniqueId;
 }
Пример #4
0
 public PdbRecordInfo(long offset, byte flags, int uniqueId)
 {
     this.offset   = offset;
     this.flags    = (PdbRecordAttributes)(flags >> 4 & 0x0f);
     this.uniqueId = uniqueId;
 }