public int GetHashCode(RawImplMapRow obj) { return((int)obj.MappingFlags + rol(obj.MemberForwarded, 3) + rol(obj.ImportName, 7) + rol(obj.ImportScope, 11)); }
public bool Equals(RawImplMapRow x, RawImplMapRow y) { return(x.MappingFlags == y.MappingFlags && x.MemberForwarded == y.MemberForwarded && x.ImportName == y.ImportName && x.ImportScope == y.ImportScope); }
void InitializeRawRow() { if (rawRow != null) { return; } rawRow = readerModule.TablesStream.ReadImplMapRow(rid); }
/// <summary> /// Reads a raw <c>ImplMap</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 TryReadImplMapRow(uint rid, out RawImplMapRow row) { var table = ImplMapTable; if (table.IsInvalidRID(rid)) { row = default; return(false); } var reader = table.DataReader; reader.Position = (rid - 1) * (uint)table.TableInfo.RowSize; row = new RawImplMapRow( reader.Unsafe_ReadUInt16(), table.Column1.Unsafe_Read24(ref reader), table.Column2.Unsafe_Read24(ref reader), table.Column3.Unsafe_Read24(ref reader)); return(true); }
static uint ReadImplMapColumnMethod(ref RawImplMapRow row, int index) => row[index];
void InitializeRawRow_NoLock() { if (rawRow != null) return; rawRow = readerModule.TablesStream.ReadImplMapRow(origRid); }