diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-04-10 19:59:37 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-04-10 19:59:37 +0000 |
commit | 3df4acfa816441fc28a95dee6d0191a927145d95 (patch) | |
tree | b5ae7ca44662cfd8e5c95f1826e4406021a606f5 /apps/JAWS/clients/Caching/URL_Array_Helper.cpp | |
parent | 60a5612b83d856fc0adc52b9f39fac9960ec9818 (diff) | |
download | ATCD-pre-subset.tar.gz |
This commit was manufactured by cvs2svn to create tag 'pre-subset'.pre-subset
Diffstat (limited to 'apps/JAWS/clients/Caching/URL_Array_Helper.cpp')
-rw-r--r-- | apps/JAWS/clients/Caching/URL_Array_Helper.cpp | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/apps/JAWS/clients/Caching/URL_Array_Helper.cpp b/apps/JAWS/clients/Caching/URL_Array_Helper.cpp deleted file mode 100644 index c8dbb55e197..00000000000 --- a/apps/JAWS/clients/Caching/URL_Array_Helper.cpp +++ /dev/null @@ -1,43 +0,0 @@ -// $Id$ - -// URL_Array_Helper.cpp - -#ifndef ACE_URL_ARRAY_HELPER_C -#define ACE_URL_ARRAY_HELPER_C - -#include "URL_Array_Helper.h" - -ACE_RCSID(Caching, URL_Array_Helper, "$Id$") - -// Some helper functions for encoding/decoding - -template <class T> -size_t ace_array_size (const T &x) -{ - size_t sum = sizeof (ACE_UINT32); - for (size_t i = 0; i < x.size (); i++) - sum += x[i].size (); - return sum; -} - -template <class T> -size_t ace_array_encode (void *buf, const T &x) -{ - size_t len = 0; - for (size_t i = 0; i < x.size (); i++) - len+= x[i].encode ((void *) ((char *) buf + len)); - return len ; -} - -template <class T> -size_t ace_array_decode (void *buf, T &x) -{ - size_t len = 0; - for (size_t i = 0; i < x.size (); i++) - len += x[i].decode ((void *) ((char *) buf + len)); - return len; -} - - - -#endif /* ACE_URL_ARRAY_HELPER_C */ |