StreamMessage.ReadBytes


Method

Declaration

int ReadBytes(byte[] value); 

Purpose

Read a byte array from a stream message.

Parameters

Parameter
Description
value

The program supplies a byte array. The call fills it with bytes from the stream message.

Remarks

Each call reads bytes from the stream into the byte array, and advances the read position.

This call returns the actual number of bytes read. When the call cannot read even one byte, it returns -1.

A program that calls this method must call it repeatedly until it returns -1, indicating that the program has extracted the complete set of bytes. Only then may the program call another read method.


TIBCO Enterprise Message Service™ .NET Reference
System Release 4.3, February 2006
Copyright © TIBCO Software Inc. All rights reserved
www.tibco.com