Add Serialize/Deserialize function for unsigned long 00/3600/1
authorBaptiste DURAND <baptiste.durand@eurogiciel.fr>
Fri, 29 Mar 2013 18:00:47 +0000 (19:00 +0100)
committerRusty Lynch <rusty.lynch@intel.com>
Tue, 21 May 2013 00:15:25 +0000 (17:15 -0700)
Fix for wrt-plugins-common build
static void Serialize(IStream& stream, const long unsigned int value)
static void Deserialize(IStream& stream, unsigned long int& value)

modules/core/include/dpl/serialization.h

index d72c488..f100547 100644 (file)
@@ -70,6 +70,16 @@ struct Serialization {
     {
         stream.Write(sizeof(*value), value);
     }
+     
+    // long int
+    static void Serialize(IStream& stream, const long unsigned int value)
+    {
+        stream.Write(sizeof(value), &value);
+    }
+    static void Serialize(IStream& stream, const long unsigned int* const value)
+    {
+        stream.Write(sizeof(*value), value);
+    }
 
     // int
     static void Serialize(IStream& stream, const int value)
@@ -203,6 +213,17 @@ struct Deserialization {
         stream.Read(sizeof(*value), value);
     }
 
+   // long int
+     static void Deserialize(IStream& stream, long unsigned  int& value)
+    {
+        stream.Read(sizeof(value), &value);
+    }
+    static void Deserialize(IStream& stream, long unsigned  int*& value)
+    {
+        value = new  long unsigned int;
+        stream.Read(sizeof(*value), value);
+    }
+
     // int
     static void Deserialize(IStream& stream, int& value)
     {