Checks whether the specified address size is valid for the specified CPU type.

Namespace: SharpAssembler.x86
Assembly: SharpAssembler x86-64 (in SharpAssembler x86-64.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public static bool IsValidAddressSize(
	CpuType type,
	DataSize addressSize
)
Visual Basic
Public Shared Function IsValidAddressSize ( _
	type As CpuType, _
	addressSize As DataSize _
) As Boolean
Visual C++
public:
static bool IsValidAddressSize(
	CpuType^ type, 
	DataSize addressSize
)

Parameters

type
Type: SharpAssembler.x86..::..CpuType
The CPU type to test against.
addressSize
Type: SharpAssembler.Core..::..DataSize
The address size to test.

Return Value

trueTruetruetrue (True in Visual Basic) when addressSize is valid for type; otherwise, falseFalsefalsefalse (False in Visual Basic).

Exceptions

ExceptionCondition
System.ComponentModel..::..InvalidEnumArgumentException!(Enum.IsDefined(typeof(DataSize), addressSize))

Contracts

This method is pure.
Requires
Enum.IsDefined(typeof(DataSize), addressSize)

See Also