page.title=RenderScript Input/Output Functions @jd:body
These functions are used to:
Functions | |
---|---|
rsAllocationIoReceive | Receive new content from the queue |
rsAllocationIoSend | Send new content to the queue |
rsSendToClient | Send a message to the client, non-blocking |
rsSendToClientBlocking | Send a message to the client, blocking |
void rsAllocationIoReceive(rs_allocation a); | Added in API level 16 |
a | Allocation to work on. |
---|
Receive a new set of contents from the queue.
void rsAllocationIoSend(rs_allocation a); | Added in API level 16 |
a | Allocation to work on. |
---|
Send the contents of the Allocation to the queue.
bool rsSendToClient(int cmdID); | |
bool rsSendToClient(int cmdID, const void* data, uint len); |
cmdID | |
---|---|
data | Application specific data. |
len | Length of the data, in bytes. |
Sends a message back to the client. This call does not block. It returns true if the message was sent and false if the message queue is full.
A message ID is required. The data payload is optional.
void rsSendToClientBlocking(int cmdID); | |
void rsSendToClientBlocking(int cmdID, const void* data, uint len); |
cmdID | |
---|---|
data | Application specific data. |
len | Length of the data, in bytes. |
Sends a message back to the client. This function will block until there is room on the message queue for this message. This function may return before the message was delivered and processed by the client.
A message ID is required. The data payload is optional.