Returns the register size of the specified register 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 DataSize GetSize(
	this RegisterType register
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function GetSize ( _
	register As RegisterType _
) As DataSize
Visual C++
[ExtensionAttribute]
public:
static DataSize GetSize(
	RegisterType register
)

Parameters

register
Type: SharpAssembler.x86..::..RegisterType
The RegisterType to get the size for.

Return Value

The DataSize of the register.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type RegisterType. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

Contracts

Ensures
Enum.IsDefined(typeof(DataSize), Contract.Result<DataSize>())

See Also