Gets the operand size based on the operand size prefix and the current assembler mode.
Namespace: SharpAssembler.x86Assembly: SharpAssembler x86-64 (in SharpAssembler x86-64.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
Visual Basic |
---|
Public Function GetOperandSize ( _
assemblerMode As DataSize _
) As DataSize |
Return Value
The operand size.
Exceptions
Contracts
Requires |
---|
Enum.IsDefined(typeof(DataSize), assemblerMode) |
assemblerMode != DataSize.None |
Ensures |
---|
Enum.IsDefined(typeof(DataSize), Contract.Result<DataSize>()) |
Contract.Result<DataSize>() != DataSize.None |
See Also