public int GetHashCode(RawManifestResourceRow obj) { return((int)obj.Offset + rol(obj.Flags, 3) + rol(obj.Name, 7) + rol(obj.Implementation, 11)); }
public bool Equals(RawManifestResourceRow x, RawManifestResourceRow y) { return(x.Offset == y.Offset && x.Flags == y.Flags && x.Name == y.Name && x.Implementation == y.Implementation); }
void InitializeRawRow() { if (rawRow != null) { return; } rawRow = readerModule.TablesStream.ReadManifestResourceRow(rid); }
/// <summary> /// Reads a raw <c>ManifestResource</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 TryReadManifestResourceRow(uint rid, out RawManifestResourceRow row) { var table = ManifestResourceTable; if (table.IsInvalidRID(rid)) { row = default; return(false); } var reader = table.DataReader; reader.Position = (rid - 1) * (uint)table.TableInfo.RowSize; row = new RawManifestResourceRow( reader.Unsafe_ReadUInt32(), reader.Unsafe_ReadUInt32(), table.Column2.Unsafe_Read24(ref reader), table.Column3.Unsafe_Read24(ref reader)); return(true); }
static uint ReadManifestResourceColumnMethod(ref RawManifestResourceRow row, int index) => row[index];
void InitializeRawRow_NoLock() { if (rawRow != null) return; rawRow = readerModule.TablesStream.ReadManifestResourceRow(origRid); }