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

Reads a byte array from the stream message.

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

Syntax

public int ReadBytes(
	byte[] value
)
Public Function ReadBytes ( _
	value As Byte() _
) As Integer
public:
int ReadBytes(
	array<unsigned char>^ value
)

Parameters

value
Type: array< System..::.Byte >[]()[]

Return Value

The byte array value read, or -1 when there are no more bytes to read.

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.

See Also