BinaryStream.writeString

Writes a string to the stream considering the character width and prefixing.

class BinaryStream
final
void
writeString
(
CHAR
bool PREFIXED = false
)
(
immutable(CHAR)[] val
)

Parameters

CHAR

The character type used for writing the string (char, wchar, or dchar).

PREFIXED

Indicates whether the string is prefixed. Default is false.

val immutable(CHAR)[]

The string to be written to the stream.

Meta