16 #ifndef _VW_NATIVECACHE_READ_H__
17 #define _VW_NATIVECACHE_READ_H__
24 #ifndef DOXYGEN_SHOULD_SKIP_THIS
30 } __attribute__((packed));
32 #endif // DOXYGEN_SHOULD_SKIP_THIS
92 virtual const char*
get_name()
const {
return "VwNativeCacheReader"; }
108 char* run_len_decode(
char *p,
vw_size_t& i);
117 inline int32_t ZigZagDecode(uint32_t n)
119 return (n >> 1) ^ -
static_cast<int32_t
>(n & 1);
130 char* bufread_label(VwLabel*
const ld,
char* c);
139 vw_size_t read_cached_label(VwLabel*
const ld);
148 vw_size_t read_cached_tag(VwExample*
const ae);
163 #endif // _VW_NATIVECACHE_READ_H__
uint32_t vw_size_t
vw_size_t typedef to work across platforms
Class CVwNativeCacheReader reads from a cache exactly as that which has been produced by VW's default...
CIOBuffer buf
Buffer to read from.
Base class from which all cache readers for VW should be derived.
Class CVwEnvironment is the environment used by VW.
virtual void set_file(int32_t f)
void check_cache_metadata()
all of classes and functions are contained in the shogun namespace
virtual bool read_cached_example(VwExample *const ae)
virtual ~CVwNativeCacheReader()
virtual const char * get_name() const