Vowpal Wabbit
cache.h
Go to the documentation of this file.
1 /*
2 Copyright (c) by respective owners including Yahoo!, Microsoft, and
3 individual contributors. All rights reserved. Released under a BSD
4 license as described in the file LICENSE.
5  */
6 #pragma once
7 #include "v_array.h"
8 #include "io_buf.h"
9 #include "example.h"
10 
11 char* run_len_decode(char* p, size_t& i);
12 char* run_len_encode(char* p, size_t i);
13 
14 int read_cached_features(vw* all, v_array<example*>& examples);
15 void cache_tag(io_buf& cache, v_array<char> tag);
16 void cache_features(io_buf& cache, example* ae, uint64_t mask);
17 void output_byte(io_buf& cache, unsigned char s);
18 void output_features(io_buf& cache, unsigned char index, features& fs, uint64_t mask);
19 
20 namespace VW
21 {
22 uint32_t convert(size_t number);
23 }
int read_cached_features(vw *all, v_array< example *> &examples)
Definition: cache.cc:65
void cache_tag(io_buf &cache, v_array< char > tag)
Definition: cache.cc:192
the core definition of a set of features.
char * run_len_decode(char *p, size_t &i)
void cache_features(io_buf &cache, example *ae, uint64_t mask)
Definition: cache.cc:203
char * run_len_encode(char *p, size_t i)
Definition: io_buf.h:54
Definition: autolink.cc:11
void output_features(io_buf &cache, unsigned char index, features &fs, uint64_t mask)
Definition: cache.cc:153
uint32_t convert(size_t number)
Definition: cache.cc:211
void output_byte(io_buf &cache, unsigned char s)
Definition: cache.cc:144