nabto_device_stream_read_some()

DESCRIPTION

Read some bytes from a stream.

Read atleast 1 byte from the stream, unless an error occurs or the stream is eof.

DECLARATION

NABTO_DEVICE_DECL_PREFIX void NABTO_DEVICE_API
nabto_device_stream_read_some(NabtoDeviceStream* stream,
                              NabtoDeviceFuture* future,
                              void* buffer,
                              size_t bufferLength,
                              size_t* readLength)

PARAMETERS

stream:
[in] The stream to read bytes from.
future:
[in] Future to resolve with the result of the operation.
buffer:
[out] The output buffer to put data into.
bufferLength:
[out] The length of the output buffer and max bytes to read.
readLength:
[out] The actual number of bytes read.

RETURN VALUES

None.

EXAMPLES

None.