MemoryStream.peekString

Reads a string from the stream considering the character width and prefixing without advancing the stream position.

class MemoryStream
final
immutable(CHAR)[]
peekString
(
CHAR
bool PREFIXED = false
)
()

Parameters

CHAR

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

PREFIXED

Indicates whether the string is prefixed. Default is false.

Return Value

Type: immutable(CHAR)[]

The read string from the stream.

Meta