summaryrefslogtreecommitdiff
path: root/buffer.cpp
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2007-12-07 14:51:53 +0000
committerOthmar Gsenger <otti@anytun.org>2007-12-07 14:51:53 +0000
commitebc305b6a49d24f8bcf05ed10efac42c4398bd5b (patch)
treed7e22e6353c568da249c5b511dea31536a6bebd8 /buffer.cpp
parentsplit parameters to global params and connection params (moved to connection ... (diff)
serialisation of buffer und connection param
Diffstat (limited to 'buffer.cpp')
-rw-r--r--buffer.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/buffer.cpp b/buffer.cpp
index 4bcb9b8..a21ebb3 100644
--- a/buffer.cpp
+++ b/buffer.cpp
@@ -32,7 +32,8 @@
#include <string>
#include <cstdio>
#include <iostream>
-
+#include <boost/archive/text_oarchive.hpp>
+#include <boost/archive/text_iarchive.hpp>
#include "datatypes.h"
#include "buffer.h"
@@ -247,3 +248,10 @@ Buffer Buffer::rightByteShift(u_int32_t width) const
return res;
}
+template<class Archive>
+void Buffer::serialize(Archive & ar, const unsigned int version)
+{
+ ar & length_;
+ ar & buf_;
+}
+