16 #ifndef _VW_NATIVECACHE_WRITE_H__
17 #define _VW_NATIVECACHE_WRITE_H__
66 virtual const char*
get_name()
const {
return "VwNativeCacheWriter"; }
88 char* run_len_encode(
char *p,
vw_size_t i);
97 inline uint32_t ZigZagEncode(int32_t n)
99 uint32_t ret = (n << 1) ^ (n >> 31);
112 char* bufcache_label(VwLabel* ld,
char* c);
119 void cache_label(VwLabel* ld);
126 void cache_tag(v_array<char> tag);
133 void output_byte(
unsigned char s);
142 void output_features(
unsigned char index, VwFeature* begin, VwFeature* end);
158 #endif // _VW_NATIVECACHE_WRITE_H__