StreamReader.readUTF16

Reads a UTF16 string from the stream.

This function determines endianness from the byte-order-mark in the stream; if none is found an exception is thrown.

class StreamReader
@nogc @safe @trusted
readUTF16
(
uint length
)

Parameters

length uint

the length of the string to read, including BOM.

Return Value

Type: nwstring

The UTF16 string read from the stream.

Meta