Whitespace and assert improvements in Reader.
This commit is contained in:
parent
2332290950
commit
a990771991
|
@ -512,7 +512,8 @@ struct UTFBlockDecoder(size_t bufferSize_) if (bufferSize_ % 2 == 0)
|
|||
// Read and decode characters from file and store them in the buffer.
|
||||
void updateBuffer() @trusted
|
||||
{
|
||||
assert(buffer_.length == 0);
|
||||
assert(buffer_.length == 0,
|
||||
"updateBuffer can only be called when the buffer is empty");
|
||||
final switch(encoding_)
|
||||
{
|
||||
case Encoding.UTF_8:
|
||||
|
|
Loading…
Reference in a new issue