Write

nn::hio::CTR::SerialChannel::Write Member Function

Syntax

#include <nn/hio.h>

Result Write(
     size_t * pWrittenSize,
     const void * buf,
     size_t size,
     bit32 attr = ATTRIBUTE_NONE
);

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

List of Overloaded Member Functions

Write(size_t *, const void *, size_t, bit32) Sends data to the host and returns the result of the operation.
Write(const void *, size_t, bit32) Sends data to the host and returns the transmission size.

Description of Write(size_t *, const void *, size_t, bit32)

size bytes of data from the buffer specified by buf are sent to the host .
The attr parameter specifies how to behave when the send buffer is full.
The process returns a nn::Result-type result.

Description of Write(const void *, size_t, bit32)

size bytes of data from the buffer specified by buf are sent to the host .
The attr parameter specifies how to behave when the send buffer is full.
Returns the number of bytes that were sent.


CONFIDENTIAL