[TIBCO.EMS .NET client library 8.1 documentation]

Reads a byte array from the bytes message stream.

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

Syntax

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

Parameters

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

Return Value

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

Remarks

This method reads bytes from the stream into the byte array and advances the read position. This method attempts to read length bytes; otherwise it attempts to read value.length bytes.

See Also