GraphicsStream.Read Method (Byte[], Int32, Int32)
Reads the specified number of bytes from the current stream into the specified byte array, starting at the specified offset in the array, and advances the position within the stream by the number of bytes read.
Namespace: Microsoft.WindowsMobile.DirectX
Assembly: Microsoft.WindowsMobile.DirectX (in microsoft.windowsmobile.directx.dll)
Syntax
'Declaration
Public Overrides Function Read ( _
buffer As Byte(), _
offset As Integer, _
count As Integer _
) As Integer
'Usage
Dim instance As GraphicsStream
Dim buffer As Byte()
Dim offset As Integer
Dim count As Integer
Dim returnValue As Integer
returnValue = instance.Read(buffer, offset, count)
public override int Read (
byte[] buffer,
int offset,
int count
)
public:
virtual int Read (
array<unsigned char>^ buffer,
int offset,
int count
) override
public int Read (
byte[] buffer,
int offset,
int count
)
public override function Read (
buffer : byte[],
offset : int,
count : int
) : int
Parameters
- buffer
A Byte array to receive the data.
- offset
The position in buffer.
- count
The number of bytes to read into buffer.
Return Value
The number of bytes read into buffer from the graphics stream.
Exceptions
Exception type | Condition |
---|---|
Unable to read from the stream buffer, or there is no data to read. |
|
One of the parameters is invalid, or the stream buffer is not large enough to hold the requested data. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see .
Platforms
Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Version Information
.NET Compact Framework
Supported in: 2.0
See Also
Reference
GraphicsStream Class
GraphicsStream Members
Microsoft.WindowsMobile.DirectX Namespace