GraphicsStream.Write Method
|
Language: |
Writes to the current stream and advances the current position within it by the number of bytes written.
Definition
Visual Basic |
Overrides Public Sub Write( _ ByVal buffer() As Byte, _ ByVal offset As Integer, _ ByVal count As Integer _ ) |
C# |
public override void Write( byte[] buffer, int offset, int count ); |
C++ |
public: virtual void Write( array<unsigned char>^ buffer, int offset, int count ) override; |
JScript |
public override function Write( buffer : byte[], offset : int, count : int ); |
Parameters
buffer
|
System.Byte[]
Reference to a Byte array that is used as the write buffer. |
offset
|
System.Int32
Value that specifies the offset of the data to write from buffer. |
count
|
System.Int32
Value that specifies the number of bytes to write. |
Remarks
Exceptions
NotSupportedException  |
Unable to write to the stream buffer, or there is no data to write. |
ArgumentException  |
One of the parameters is invalid, the stream buffer is not large enough to hold the requested data, or ranks is greater than three. |
Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center