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