diff options
author | Nicolas 'Pixel' Noble <pixel@nobis-crew.org> | 2013-01-21 22:03:15 -0800 |
---|---|---|
committer | Nicolas 'Pixel' Noble <pixel@nobis-crew.org> | 2013-01-21 22:03:15 -0800 |
commit | 8943c91ea48c4a87dd0e5ae15fefe959f72ae85c (patch) | |
tree | 9a3a1fb4b7d79b13cda092e99109c93fac38276a /src | |
parent | b89df4ea0cf33408109658f674ff0453b7569e04 (diff) |
Small, puny optimization.
Diffstat (limited to 'src')
-rw-r--r-- | src/BStream.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/BStream.cc b/src/BStream.cc index 16fd1d1..2fe75c7 100644 --- a/src/BStream.cc +++ b/src/BStream.cc @@ -85,6 +85,9 @@ int Balau::BStream::peekNextByte() { } Balau::String Balau::BStream::readString(bool putNL) { + if (m_h.isA<BStream>()) + return m_h.asA<BStream>()->readString(putNL); + peekNextByte(); uint8_t * cr, * lf, * nl; String ret; |