More pure nothrow @nogc.
This commit is contained in:
parent
949a396248
commit
66741654c3
|
@ -130,7 +130,7 @@ final class Reader
|
||||||
///
|
///
|
||||||
// XXX removed; search for 'risky' to find why.
|
// XXX removed; search for 'risky' to find why.
|
||||||
// Throws: ReaderException if trying to read past the end of the buffer.
|
// Throws: ReaderException if trying to read past the end of the buffer.
|
||||||
dchar peek(size_t index = 0) @safe pure const
|
dchar peek(size_t index = 0) @safe pure nothrow const @nogc
|
||||||
{
|
{
|
||||||
if(buffer_.length <= bufferOffset_ + index)
|
if(buffer_.length <= bufferOffset_ + index)
|
||||||
{
|
{
|
||||||
|
@ -184,7 +184,7 @@ final class Reader
|
||||||
///
|
///
|
||||||
/// Throws: ReaderException if trying to read past the end of the buffer
|
/// Throws: ReaderException if trying to read past the end of the buffer
|
||||||
/// or if invalid data is read.
|
/// or if invalid data is read.
|
||||||
dchar get() @safe pure
|
dchar get() @safe pure nothrow @nogc
|
||||||
{
|
{
|
||||||
const result = peek();
|
const result = peek();
|
||||||
forward();
|
forward();
|
||||||
|
@ -303,7 +303,7 @@ struct UTFDecoder
|
||||||
/// Decode all data passed to the constructor.
|
/// Decode all data passed to the constructor.
|
||||||
///
|
///
|
||||||
/// On error, getAndClearErrorMessage() will return a non-null string.
|
/// On error, getAndClearErrorMessage() will return a non-null string.
|
||||||
void decodeAll() @safe
|
void decodeAll() @safe pure nothrow
|
||||||
{
|
{
|
||||||
assert(decoded_ is null, "Calling decodeAll more than once");
|
assert(decoded_ is null, "Calling decodeAll more than once");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue