Emits this section into its binary representation.
Namespace: SharpAssembler.CoreAssembly: SharpAssembler Core (in SharpAssembler Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# |
|---|
public long Emit( BinaryWriter writer, Context context ) |
| Visual Basic |
|---|
Public Function Emit ( _ writer As BinaryWriter, _ context As Context _ ) As Long |
| Visual C++ |
|---|
public: long long Emit( BinaryWriter^ writer, Context^ context ) |
Parameters
- writer
- Type: System.IO..::..BinaryWriter
The BinaryWriter to which the section is written.
- context
- Type: SharpAssembler.Core..::..Context
The Context used.
Return Value
The number of bytes in this section which were written to writer.
Exceptions
| Exception | Condition |
|---|---|
| System..::..ArgumentNullException | writer == null |
| System..::..ArgumentNullException | context == null |
| System..::..ArgumentException | !(IsConstructed) |
Contracts
| Requires | ||||
|---|---|---|---|---|
writer != null
| ||||
context != null
| ||||
IsConstructed
|
| Ensures |
|---|
Contract.Result<long>() >= 0 |