/// <summary> /// Reads a raw <c>PropertyMap</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 TryReadPropertyMapRow(uint rid, out RawPropertyMapRow row) { var table = PropertyMapTable; if (table.IsInvalidRID(rid)) { row = default; return(false); } var reader = table.DataReader; reader.Position = (rid - 1) * (uint)table.TableInfo.RowSize; row = new RawPropertyMapRow( table.Column0.Unsafe_Read24(ref reader), table.Column1.Unsafe_Read24(ref reader)); return(true); }
public int GetHashCode(RawPropertyMapRow obj) => (int)obj.Parent + rol(obj.PropertyList, 3);
public bool Equals(RawPropertyMapRow x, RawPropertyMapRow y) => x.Parent == y.Parent && x.PropertyList == y.PropertyList;
public int GetHashCode(RawPropertyMapRow obj) { return((int)obj.Parent + rol(obj.PropertyList, 3)); }
public bool Equals(RawPropertyMapRow x, RawPropertyMapRow y) { return(x.Parent == y.Parent && x.PropertyList == y.PropertyList); }
static uint ReadPropertyMapColumnMethod(ref RawPropertyMapRow row, int index) => row[index];