Returns the minimum size required to fit the specified 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( short value ) |
| Visual Basic |
|---|
Public Shared Function GetSizeOfValue ( _ value As Short _ ) As DataSize |
| Visual C++ |
|---|
public: static DataSize GetSizeOfValue( short value ) |
Parameters
- value
- Type: System..::..Int16
The value.
Return Value
A member of the DataSize enumeration.
Contracts
This method is pure.
| Ensures |
|---|
Enum.IsDefined(typeof(DataSize), Contract.Result<DataSize>()) |