SmartMemoryManagement

SmartMemoryStream.Read Method

Reads the number of bytes specified by count and writes them into the buffer at the specified offset. For more Information and examples see Read

[Visual Basic]
Overrides Public Function Read( _ 
   ByVal buffer As Byte(), _ 
   ByVal offset As Integer, _ 
   ByVal count As Integer _ 
) As Integer
[C#]
public override int Read(
   byte[] buffer,
   int offset,
   int count
);
[C++]
public: int Read(
   char buffer __gc[],
   int offset,
   int count
);
[JScript]
public override function Read(
   Byte[] buffer,
   int offset,
   int count
): int;

Parameters

buffer
The byte buffer to copy the content to
offset
The offset on the buffer
count
The number of bytes to write

Return Value

The number of bytes read from the stream

See Also

SmartMemoryStream Class | InfiniTec.SystemUtilities Namespace