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
);

Arguments

Name Description
out pWrittenSize Location where the size of data (in bytes) that were actually sent are stored.
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.

Return Values

Returns the result of the operation.

Description

Sends data to the host and returns the result of the operation.

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.

Revision History

2010/06/14
Added description of arguments and behavior.
2010/03/31
Initial version.

CONFIDENTIAL