Read

nn::hio::CTR::SerialChannel::Read Member Function

Syntax

#include <nn/hio.h>

Result Read(
     size_t * pReadSize,
     void * buf,
     size_t size,
     bit32 attr = ATTRIBUTE_NONE
);

s32 Read(
     void * buf,
     size_t size,
     bit32 attr = ATTRIBUTE_NONE
);

List of Overloaded Member Functions

Read(size_t *, void *, size_t, bit32) Receives data from the host and returns the result of the operation.
Read(void *, size_t, bit32) Receives data from the host and returns the size of data received.

Description of Read(size_t *, void *, size_t, bit32)

size bytes of data are received to the buffer specified by buf.
The attr parameter specifies how to behave when the received data is fewer bytes than specified by size.
The process returns a nn::Result-type result.

Description of Read(void *, size_t, bit32)

size bytes of data are received to the buffer specified by buf.
The attr parameter specifies how to behave when the received data is fewer bytes than specified by size.
Returns the actual number of bytes that were received.


CONFIDENTIAL