WvStreams
wvserialize.cc
00001 /*
00002  * Worldvisions Weaver Software:
00003  *   Copyright (C) 1997-2002 Net Integration Technologies, Inc.
00004  *
00005  * Code to serialize and deserialize objects to/from WvBufs.
00006  * See wvserialize.h.
00007  */
00008 #include "wvserialize.h"
00009 
00010 template <>
00011 WvString _wv_deserialize<WvString>(WvBuf &buf)
00012 {
00013     unsigned int len = buf.strchr('\0');
00014     if (buf.used() < len)
00015         return WvString();
00016     else
00017         return (const char *)buf.get(len);
00018 }