Beispiel #1
0
        /// <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);
        }
Beispiel #2
0
 public int GetHashCode(RawPropertyPtrRow obj) => (int)obj.Property;
Beispiel #3
0
 public bool Equals(RawPropertyPtrRow x, RawPropertyPtrRow y) => x.Property == y.Property;
Beispiel #4
0
 public int GetHashCode(RawPropertyPtrRow obj)
 {
     return((int)obj.Property);
 }
Beispiel #5
0
 public bool Equals(RawPropertyPtrRow x, RawPropertyPtrRow y)
 {
     return(x.Property == y.Property);
 }
Beispiel #6
0
 static uint ReadPropertyPtrColumnMethod(ref RawPropertyPtrRow row, int index) => row[index];