diff options
Diffstat (limited to '')
-rw-r--r-- | src/stream.h | 10 |
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. |