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 73 virtual void set_file(int32_t f);
80 virtual bool read_cached_example(
VwExample*
const ae);
85 void check_cache_metadata();
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);
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.
Class VwLabel holds a label object used by VW.
all of classes and functions are contained in the shogun namespace
virtual const char * get_name() const