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
Syntax
| C# | 
|---|
| public static DataSize GetSizeOfValue( sbyte value, bool signed ) | 
| Visual Basic | 
|---|
| Public Shared Function GetSizeOfValue ( _ value As SByte, _ signed As Boolean _ ) As DataSize | 
| Visual C++ | 
|---|
| public: static DataSize GetSizeOfValue( signed char value, bool signed ) | 
Parameters
- value
- Type: System..::..SByte
 The value.
- signed
- Type: System..::..Boolean
 Whether to do a signed check.
Return Value
A member of the DataSize enumeration. Contracts
Contracts
This method is pure.
| Ensures | 
|---|
| Enum.IsDefined(typeof(DataSize), Contract.Result<DataSize>()) | 





