aboutsummaryrefslogtreecommitdiff
path: root/src/stream.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-02-16 03:35:41 +0000
committerMike Buland <eichlan@xagasoft.com>2012-02-16 03:35:41 +0000
commit255bd27d4e26d2e5cef9ad4d57bb9c18bc986c67 (patch)
tree0d207452a5e819d5ee5710e37ed3943c38fff9bf /src/stream.h
parent7d7bd049ed6815d3d2bac03331ff56102d224580 (diff)
downloadlibbu++-255bd27d4e26d2e5cef9ad4d57bb9c18bc986c67.tar.gz
libbu++-255bd27d4e26d2e5cef9ad4d57bb9c18bc986c67.tar.bz2
libbu++-255bd27d4e26d2e5cef9ad4d57bb9c18bc986c67.tar.xz
libbu++-255bd27d4e26d2e5cef9ad4d57bb9c18bc986c67.zip
Added MemBuf docs and a new readAll function to the base stream class.
More helpers never really hurt.
Diffstat (limited to '')
-rw-r--r--src/stream.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/stream.h b/src/stream.h
index fb70f21..b35f6ee 100644
--- a/src/stream.h
+++ b/src/stream.h
@@ -56,6 +56,16 @@ namespace Bu
56 virtual Bu::String readLine(); 56 virtual Bu::String readLine();
57 57
58 /** 58 /**
59 * Reads all data from the current position onward until isEos returns
60 * true and returns it as a Bu::String. This will also return if no
61 * data is available and the stream is in non-blocking mode. This
62 * function is intended for very particular circumstances and is often
63 * not the most efficient way to access the data that you would like.
64 *@returns The entire stream contents.
65 */
66 virtual Bu::String readAll();
67
68 /**
59 * Write data to the stream. 69 * Write data to the stream.
60 *@param pBuf (const void *) The data to be written. 70 *@param pBuf (const void *) The data to be written.
61 *@param nBytes (size_t) Amount of data to write from pBuf. 71 *@param nBytes (size_t) Amount of data to write from pBuf.