BytesMessage.WriteBytes


Method

Declaration

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

Purpose

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

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.

Offset & Length

When present, the offset and length arguments must conform to these restrictions:

That is, these two arguments must specify a span of bytes within the value argument. Otherwise the call throws a System.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