Exemplo n.º 1
0
        /// <summary>
        /// Reads a raw <c>MethodDebugInformation</c> row or returns false if the row doesn't exist
        /// </summary>
        /// <param name="rid">Row ID</param>
        /// <param name="row">Row data</param>
        /// <returns></returns>
        public bool TryReadMethodDebugInformationRow(uint rid, out RawMethodDebugInformationRow row)
        {
            var table = MethodDebugInformationTable;

            if (table.IsInvalidRID(rid))
            {
                row = default;
                return(false);
            }
            var reader = table.DataReader;

            reader.Position = (rid - 1) * (uint)table.TableInfo.RowSize;
            row             = new RawMethodDebugInformationRow(
                table.Column0.Unsafe_Read24(ref reader),
                table.Column1.Unsafe_Read24(ref reader));
            return(true);
        }
Exemplo n.º 2
0
 public int GetHashCode(RawMethodDebugInformationRow obj) =>
 (int)obj.Document +
 rol(obj.SequencePoints, 3);
Exemplo n.º 3
0
 public bool Equals(RawMethodDebugInformationRow x, RawMethodDebugInformationRow y) =>
 x.Document == y.Document &&
 x.SequencePoints == y.SequencePoints;
Exemplo n.º 4
0
 static uint ReadMethodDebugInformationColumnMethod(ref RawMethodDebugInformationRow row, int index) => row[index];