aboutsummaryrefslogtreecommitdiffstats
path: root/src/utility/stream.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2012-04-16 20:32:33 +0000
committerVincent Richard <[email protected]>2012-04-16 20:32:33 +0000
commit4f33877820edee1b47d1b6f4fc800eaad273adaa (patch)
tree10d5d339f17f2561ef46993de308c2e7d8a9fd79 /src/utility/stream.cpp
parentSplit stream.hpp/.cpp into multiple source files. (diff)
downloadvmime-4f33877820edee1b47d1b6f4fc800eaad273adaa.tar.gz
vmime-4f33877820edee1b47d1b6f4fc800eaad273adaa.zip
Added ability to parse directly from an input stream (eg. file). This allows very big messages to be parsed without loading the whole message data into memory.
Diffstat (limited to 'src/utility/stream.cpp')
-rw-r--r--src/utility/stream.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utility/stream.cpp b/src/utility/stream.cpp
index 1c940c2a..67c1f330 100644
--- a/src/utility/stream.cpp
+++ b/src/utility/stream.cpp
@@ -29,6 +29,9 @@ namespace vmime {
namespace utility {
+const stream::size_type stream::npos = static_cast <size_type>(vmime::string::npos);
+
+
stream::size_type stream::getBlockSize()
{
return 32768; // 32 KB
@@ -37,3 +40,4 @@ stream::size_type stream::getBlockSize()
} // utility
} // vmime
+