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