Reader.prefix

Get specified number of characters starting at current position.

Note: This gets only a "view" into the internal buffer, which will be invalidated after other Reader calls. Use SliceBuilder to build slices for permanent use.

class Reader
pure nothrow @nogc
char[]
prefix
@safe
(
const size_t length
)

Return Value

Type: char[]

Characters starting at current position or an empty slice if out of bounds.

Meta