Modifies the context and emits the binary representation of this emittable.
Namespace: SharpAssembler.Core.InstructionsAssembly: SharpAssembler Core (in SharpAssembler Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# |
|---|
public int Emit( BinaryWriter writer, Context context ) |
| Visual Basic |
|---|
Public Function Emit ( _ writer As BinaryWriter, _ context As Context _ ) As Integer |
| Visual C++ |
|---|
public: virtual int Emit( BinaryWriter^ writer, Context^ context ) sealed |
Parameters
- writer
- Type: System.IO..::..BinaryWriter
The BinaryWriter to which the encoded instruction is written.
- context
- Type: SharpAssembler.Core..::..Context
The Context in which the emittable will be emitted.
Return Value
The number of emitted bytes.Implements
IEmittable..::..Emit(BinaryWriter, Context)
Exceptions
| Exception | Condition |
|---|---|
| System..::..ArgumentNullException | context == null |
| System..::..ArgumentNullException | writer == null |
Contracts
| Requires | ||||
|---|---|---|---|---|
context != null
| ||||
writer != null
|
| Ensures | ||
|---|---|---|
Contract.Result<int>() >= 0
|