Saner handling if config.mk doesn't exist: use a default config.defaults.mk.
[wvstreams.git] / utils / wvserialize.cc
blob06b729a1c8b52e2b98920359fc80f11a60289c04
1 /*
2 * Worldvisions Weaver Software:
3 * Copyright (C) 1997-2002 Net Integration Technologies, Inc.
5 * Code to serialize and deserialize objects to/from WvBufs.
6 * See wvserialize.h.
7 */
8 #include "wvserialize.h"
10 template <>
11 WvString _wv_deserialize<WvString>(WvBuf &buf)
13 unsigned int len = buf.strchr('\0');
14 if (buf.used() < len)
15 return WvString();
16 else
17 return (const char *)buf.get(len);