DataWriterExtensionsWriteBytes Method (IDataWriter, IDataReader, Int32) |
Writes a bytes at the current position in the packet packet.
The current position is advanced by the number of bytes written.
Namespace:
Demo3D.IO
Assembly:
Demo3D.IO (in Demo3D.IO.dll) Version: 18.03.00
Syntaxpublic static void WriteBytes(
this IDataWriter writer,
IDataReader fromData,
int length
)
Parameters
- writer
- Type: Demo3D.IOIDataWriter
The data writer. - fromData
- Type: Demo3D.IOIDataReader
The data to read from. - length
- Type: SystemInt32
The number of bytes to write.
Return Value
Type:
A buffer into which data can be overwritten.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IDataWriter. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Remarks
The buffer returned describes the area of the packet written to by this method.
This buffer can be used to overwrite that portion of the data in the packet.
See Also