Emits this section into its binary representation.

Namespace: SharpAssembler.Core
Assembly: 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

Contracts

Requires
writer != null
context != null
IsConstructed
Description: Section.Construct() must be called before calling Section.Emit().
Exception: System..::..ArgumentException
Ensures
Contract.Result<long>() >= 0

See Also