diff --git a/source/dyaml/reader.d b/source/dyaml/reader.d index e8f09a4..cc8f5d8 100644 --- a/source/dyaml/reader.d +++ b/source/dyaml/reader.d @@ -200,6 +200,10 @@ final class Reader { return slice(0, length); } + char[] prefix8(const size_t length) @safe pure nothrow @nogc + { + return slice8(length); + } /// Get a slice view of the internal buffer. /// @@ -265,6 +269,12 @@ final class Reader forward(length); return result; } + char[] get8(const size_t length) @safe pure nothrow @nogc + { + auto result = prefix8(length); + forward(length); + return result; + } /// Move current position forward. ///