Determines the minimum width that can fit the specified (signed or unsigned) value.
Namespace: SharpAssembler.CoreAssembly: SharpAssembler Core (in SharpAssembler Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
public static DataSize GetSizeOfValue( Int128 value, bool signed ) |
Visual Basic |
---|
Public Shared Function GetSizeOfValue ( _ value As Int128, _ signed As Boolean _ ) As DataSize |
Visual C++ |
---|
public: static DataSize GetSizeOfValue( Int128 value, bool signed ) |
Parameters
- value
- Type: SharpAssembler.Core..::..Int128
The value to fit.
- signed
- Type: System..::..Boolean
Whether to fit the value signed or unsigned.
Return Value
A member of the DataSize enumeration.
Contracts
This method is pure.
Ensures |
---|
Enum.IsDefined(typeof(DataSize), Contract.Result<DataSize>()) |