From 8943c91ea48c4a87dd0e5ae15fefe959f72ae85c Mon Sep 17 00:00:00 2001 From: Nicolas 'Pixel' Noble Date: Mon, 21 Jan 2013 22:03:15 -0800 Subject: Small, puny optimization. --- src/BStream.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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()) + return m_h.asA()->readString(putNL); + peekNextByte(); uint8_t * cr, * lf, * nl; String ret; -- cgit v1.2.3