Collapse All Expand All

.NET Framework Class Library
BytesMessage Class See Also

[TIBCO.EMS.UFOCLIENT .NET client library 5.1 documentation]

Writes a portion of the byte array to the bytes message stream

Namespace: TIBCO.EMS.UFO
Assembly: TIBCO.EMS.UFO (in TIBCO.EMS.UFO.dll)

# Syntax

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

    Public Sub WriteBytes ( _
    	value As Byte(), _
    	offset As Integer, _
    	length As Integer _
    )

    public:
    void WriteBytes(
    	array<unsigned char>^ value,
    	int offset,
    	int length
    )

#### Parameters

value
  Type: array< System..::.Byte >[]()[]
  Write bytes from this byte array to the message.

offset
  Type: System..::.Int32
  Begin with the byte at this offset within the byte array.

length
  Type: System..::.Int32
  Write this number of bytes from the byte array.

# Remarks

The offset and length arguments must conform to these restrictions:

- offset must be in the range [0, value.length-1]
- length must be in the range [0, value.length]
- offset+length must be in the range [0, value.length]

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).

# See Also

BytesMessage Class
WriteBytes Overload
TIBCO.EMS.UFO Namespace