Removed a GC allocation.
This commit is contained in:
parent
66741654c3
commit
b060699950
|
@ -196,9 +196,9 @@ final class Reader
|
||||||
/// Params: length = Number or characters to get.
|
/// Params: length = Number or characters to get.
|
||||||
///
|
///
|
||||||
/// Returns: Characters starting at current position.
|
/// Returns: Characters starting at current position.
|
||||||
dstring get(size_t length) @safe pure nothrow
|
dstring get(size_t length) @safe pure nothrow @nogc
|
||||||
{
|
{
|
||||||
auto result = prefix(length).idup;
|
auto result = prefix(length);
|
||||||
forward(length);
|
forward(length);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue