Reference Library
Read Method (buffer, offset, count)
NamespacesMBNCSUtil.DataMpqFileStreamRead(array<Byte>[]()[][], Int32, Int32)
Reads data from the underlying stream into the specified buffer.
Declaration Syntax
C#Visual BasicVisual C++
public override int Read(
	byte[] buffer,
	int offset,
	int count
)
Public Overrides Function Read ( _
	buffer As Byte(), _
	offset As Integer, _
	count As Integer _
) As Integer
public:
virtual int Read(
	array<unsigned char>^ buffer, 
	int offset, 
	int count
) override
Parameters
buffer (array<Byte>[]()[][])
The buffer that will receive the data.
offset (Int32)
The starting location in the buffer to get the data.
count (Int32)
The amount of data to be read.
Return Value
The number of bytes read.
Remarks

Rather than throwing an exception, if the buffer is too small to return the requested amount of data, only as much data as the buffer can hold is returned.

Assembly: Asgard5Library (Module: Asgard5Library)