Click or drag to resize

TraceBufferClientRead Method

Reads a block of TraceEvent.

Namespace: RAYLASE.SPICE3.TraceBuffer
Assembly: RAYLASE.SPICE3.TraceBufferLib (in RAYLASE.SPICE3.TraceBufferLib.dll) Version: 3.6.0
Syntax
C#
public int Read(
	TraceEvent[] buffer,
	int index,
	int count
)

Parameters

buffer  TraceEvent
Buffer where the events will be written to.
index  Int32
First position inside buffer where the events will be written to.
count  Int32
Maximum number of events that will be written to buffer.

Return Value

Int32
The actual number of TraceEvent that were written to buffer
Remarks
Reads a maximum of count available TraceEvent that were received from the card since the last call to this function. If at least one TraceEvent is available it will directly return with only the number of currently available events. This call blocks until new data is available. A TimeoutException will be thrown if ReadTimeout occurs before any data is available. Note that receiving of events has to be enabled using Start in order to receive TraceEvents from the card.
See Also