TraceBufferClientRead Method | 
Namespace: RAYLASE.SPICE3.TraceBufferAssembly: RAYLASE.SPICE3.TraceBufferLib (in RAYLASE.SPICE3.TraceBufferLib.dll) Version: 3.9.1
Syntaxpublic 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
Int32The 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.
            
            It should be noted also, that "TryRead" does not guarantee to to receive all events that occurred prior to the call,
            even if not all "count" many entries get filled. It might be necessary to call "TryRead" multiple times until all events are received.
            It is only guaranteed that all generated events become available through "TryRead" eventually after an unspecified amount of time.
            
See Also