Calculates the padding from the specified value to the next boundary.
Namespace: SharpAssembler.CoreAssembly: SharpAssembler Core (in SharpAssembler Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
public static int CalculatePadding(
int value,
int boundary
) |
Visual Basic |
---|
Public Shared Function CalculatePadding ( _
value As Integer, _
boundary As Integer _
) As Integer |
Visual C++ |
---|
public:
static int CalculatePadding(
int value,
int boundary
) |
Return Value
The padding from the value to the next boundary.
Exceptions
Contracts
This method is pure.
Ensures |
---|
Contract.Result<int>() >= 0 |
See Also