} // Read public static uint Read(this NativeReader reader, uint offset, out QualifiedMethodHandle handle) { uint value; offset = reader.DecodeUnsigned(offset, out value); handle = new QualifiedMethodHandle((int)value); handle._Validate(); return offset; } // Read
} // Read public static uint Read(this NativeReader reader, uint offset, out QualifiedMethodHandle[] values) { uint count; offset = reader.DecodeUnsigned(offset, out count); if (count == 0) { values = s_emptyQualifiedMethodHandleArray; } else { values = new QualifiedMethodHandle[count]; for (uint i = 0; i < count; ++i) { QualifiedMethodHandle tmp; offset = reader.Read(offset, out tmp); values[i] = tmp; } } return offset; } // Read
} // IsNull internal bool IsNull(QualifiedMethodHandle handle) { return (handle._value & 0x00FFFFFF) == 0; } // IsNull
} // ToHandle internal Handle ToHandle(QualifiedMethodHandle handle) { return new Handle(handle._value); } // ToHandle
} // GetQualifiedField public QualifiedMethod GetQualifiedMethod(QualifiedMethodHandle handle) { var record = new QualifiedMethod() { _reader = this, _handle = handle }; var offset = (uint)handle.Offset; offset = _streamReader.Read(offset, out record._method); offset = _streamReader.Read(offset, out record._enclosingType); return record; } // GetQualifiedMethod
} // Equals public bool Equals(QualifiedMethodHandle handle) { return _value == handle._value; } // Equals
} // Read public static uint Read(this NativeReader reader, uint offset, out QualifiedMethodHandle[] values) { uint count; offset = reader.DecodeUnsigned(offset, out count); #if !NETFX_45 if (count == 0) { values = Array.Empty<QualifiedMethodHandle>(); } else #endif { values = new QualifiedMethodHandle[count]; for (uint i = 0; i < count; ++i) { QualifiedMethodHandle tmp; offset = reader.Read(offset, out tmp); values[i] = tmp; } } return offset; } // Read