/// <summary> /// Reads a raw <c>PropertyPtr</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 TryReadPropertyPtrRow(uint rid, out RawPropertyPtrRow row) { var table = PropertyPtrTable; if (table.IsInvalidRID(rid)) { row = default; return(false); } var reader = table.DataReader; reader.Position = (rid - 1) * (uint)table.TableInfo.RowSize; row = new RawPropertyPtrRow(table.Column0.Unsafe_Read24(ref reader)); return(true); }
public int GetHashCode(RawPropertyPtrRow obj) => (int)obj.Property;
public bool Equals(RawPropertyPtrRow x, RawPropertyPtrRow y) => x.Property == y.Property;
public int GetHashCode(RawPropertyPtrRow obj) { return((int)obj.Property); }
public bool Equals(RawPropertyPtrRow x, RawPropertyPtrRow y) { return(x.Property == y.Property); }
static uint ReadPropertyPtrColumnMethod(ref RawPropertyPtrRow row, int index) => row[index];