Generates an array of bytes which represent the padding bytes used for the align instruction.
            
Namespace: SharpAssembler.Core.InstructionsAssembly: SharpAssembler Core (in SharpAssembler Core.dll) Version: 1.0.0.0 (1.0.0.0)
 Syntax
Syntax
| C# | 
|---|
| protected virtual byte[] GeneratePadding( Context context, int length ) | 
| Visual Basic | 
|---|
| Protected Overridable Function GeneratePadding ( _ context As Context, _ length As Integer _ ) As Byte() | 
| Visual C++ | 
|---|
| protected: virtual array<unsigned char>^ GeneratePadding( Context^ context, int length ) | 
Parameters
- context
- Type: SharpAssembler.Core..::..Context
 The Context in which the padding will be generated.
- length
- Type: System..::..Int32
 The length of the padding, in bytes.
Return Value
A byte array which has a length of length. Remarks
Remarks
            The default operation is to generate a sequence of bytes with the value PaddingByte.
            Architectures may provide their own implementation of this method, which may generate more appropriate
            padding sequences (depending on the processor used and other factors).
            
 Exceptions
Exceptions
| Exception | Condition | 
|---|---|
| System..::..ArgumentNullException | context == null | 
| System..::..ArgumentOutOfRangeException | length < 0 | 
 Contracts
Contracts
| Requires | ||
|---|---|---|
| context != null 
 | ||
| length >= 0 
 | 





