StreamMessage.WriteBytes


Method

Declaration

void WriteBytes(byte[] value); 
 
void WriteBytes(byte[] value, int offset, int length); 

Purpose

Write bytes from a byte array to a stream message.

Parameters

Parameter
Description
value

Write bytes from this byte array to the message.

offset
Begin with the byte at this offset within the byte array.
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.

When the program supplies offset and length arguments, the call attempts to write the specified bytes to the stream; otherwise it attempts to write the entire byte array.

When present, the offset and length arguments must be between zero and value.length (inclusive), and their sum must also fall within the same range. That is, these two arguments must specify a span of bytes within the value argument. Otherwise the call throws an IndexOutOfRangeException (and does not write any bytes).


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