Click or drag to resize

DataWriterExtensionsWriteAsString Method

Writes a string at the current position in the buffer. The current position is advanced by the number of bytes written.

Namespace: Demo3D.IO
Assembly: Demo3D.IO (in Demo3D.IO.dll) Version: 19.00.00
Syntax
C#
public static void WriteAsString(
	this IDataWriter writer,
	Object val,
	BinaryTextEncoding encoding
)

Parameters

writer  IDataWriter
The data writer.
val  Object
The value to write.
encoding  BinaryTextEncoding
The text encoding.

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
See BinaryTextEncoding for example usage.
See Also