anyKode Marilou
ContentsIndexHome
PreviousUpNext
DeviceExternalCommunicationPort::SyncRead

Read data written by the communication Port, awaiting at least one byte.

C++
M32 SyncRead(void * pBuffer, int BufferByteSize, M32 * piDeviceResponse = NULL, void * pReserved = NULL);
Parameters 
Description 
void * pBuffer 
[in/out] Pointer to the buffer to fill in. 
int BufferByteSize 
[in] Bytes size of the buffer pBuffer 
M32 * piDeviceResponse = NULL 
(see Message
void * pReserved = NULL 
(see Message

The bytes count filled in pBuffer (can be 0 if an error occurred).

SyncRead gets data from the temporary receive buffer. This buffer is filled by the Port. The function call is blocked until at least one byte is ready and returns the bytes count filled in pBuffer.

Documentation v4.7 (18/01/2015), Copyright (c) 2015 anyKode. All rights reserved.
What do you think about this topic? Send feedback!