# tibemsStreamMsg_WriteBytes

Function

## Purpose

Write bytes from a byte array to a stream message.

## C Declaration

    tibems_status tibemsStreamMsg_WriteBytes(
        tibemsStreamMsg message,
        void* value,
        tibems_uint length );

## COBOL Call

    CALL "tibemsStreamMsg_WriteBytes"
         USING BY VALUE message,
               BY REFERENCE value,
               BY VALUE length,
               RETURNING tibems-status
    END-CALL.

Note: `message` has usage pointer.

## Parameters

Parameter | Description
--- | ---
`message` | Write to the byte stream of this message.
`value` | Copy bytes from this byte array to the message.
`length` | Write this number of bytes from the byte array to the message.

## Remarks

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

Copyright © Cloud Software Group, Inc. All rights reserved.