nn::hio::CTR::SerialChannel::Write Member Function#include <nn/hio.h>
s32 Write(
const void * buf,
size_t size,
bit32 attr = ATTRIBUTE_NONE
);
| Name | Description | |
|---|---|---|
| in | buf | Buffer storing the data to send. |
| in | size | Maximum size of the data to send. |
| in | attr | Send attribute. If set to ATTRIBUTE_NONE, the function blocks until size bytes are sent.If set to ATTRIBUTE_NO_WAIT, it returns once the send buffer becomes full. |
-1. Sends data to the host and returns the transmission size.
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