Returns the register size of the specified register.
Namespace: SharpAssembler.x86Assembly: SharpAssembler x86-64 (in SharpAssembler x86-64.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
public static DataSize GetSize( this Register register ) |
Visual Basic |
---|
<ExtensionAttribute> _ Public Shared Function GetSize ( _ register As Register _ ) As DataSize |
Visual C++ |
---|
[ExtensionAttribute] public: static DataSize GetSize( Register register ) |
Parameters
- register
- Type: SharpAssembler.x86..::..Register
The Register 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 Register. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Exceptions
Exception | Condition |
---|---|
System.ComponentModel..::..InvalidEnumArgumentException | !(Enum.IsDefined(typeof(Register), register)) |
Contracts
This method is pure.
Requires |
---|
Enum.IsDefined(typeof(Register), register) |
Ensures |
---|
Enum.IsDefined(typeof(DataSize), Contract.Result<DataSize>()) |