tibemsBytesMsg_WriteBytes

Function

Purpose

Write bytes from a byte array to the byte stream in the message body.

C Declaration

tibems_status tibemsBytesMsg_WriteBytes(
    tibemsBytesMsg message,
    const void* value,
    tibems_uint length );

COBOL Call

CALL "tibemsBytesMsg_WriteBytes"
 USING BY VALUE message,
       BY REFERENCE value,
       BY VALUE size,
       RETURNING tibems-status
END-CALL.
Note: message has usage pointer in all calls.

Parameters

Parameter Description
message Write bytes into the body data of this bytes message.
value Write bytes from this byte array into the message.
length Write this number of bytes from the byte array.

Remarks

Each call writes bytes from the byte array into the stream, and advances the write position.