PacketIOServiceReadAsync(IPacketIOService, Endian, BinaryTextEncoding) Method |
Gets a data buffer for reading.
Namespace: Demo3D.NetAssembly: Demo3D.IO (in Demo3D.IO.dll) Version: 19.00.00
Syntaxpublic static Task<IPacketReader> ReadAsync(
this IPacketIOService service,
Endian endian,
BinaryTextEncoding textEncoding
)
Parameters
- service IPacketIOService
- The IPacketIOService.
- endian Endian
- The endian format of the data being read (or null if not known).
- textEncoding BinaryTextEncoding
- The text encoding format of any strings in the data being read (or null if not known).
Return Value
TaskIPacketReaderA PacketReader that contains the data read.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IPacketIOService. 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).
See Also