Click or drag to resize

BinaryString(String, Boolean, ArraySegmentByte, BinaryTextEncoding) Constructor

Creates a new BinaryString.

Namespace: Demo3D.IO
Assembly: Demo3D.IO (in Demo3D.IO.dll) Version: 19.01.00
Syntax
C#
public BinaryString(
	string? str,
	bool bytesValid,
	 in ArraySegment<byte> bytes,
	BinaryTextEncoding? encoding
)

Parameters

str  String
The string representation.
bytesValid  Boolean
True if bytes are valid.
bytes  ArraySegmentByte
The string encoded in the encoding format.
encoding  BinaryTextEncoding
The encoding of the string.
Remarks
Either str or bytes needs to be non-null. If str is null then it can be deduced from bytes so long as encoding is not null.
See Also