Vowpal Wabbit
Namespaces | Functions
cache.h File Reference
#include "v_array.h"
#include "io_buf.h"
#include "example.h"
#include "io/logger.h"

Namespaces

 VW
 
 VW::details
 

Functions

char * run_len_decode (char *p, size_t &i)
 
char * run_len_encode (char *p, size_t i)
 
void cache_tag (io_buf &cache, const v_array< char > &tag)
 
void output_byte (io_buf &cache, unsigned char s)
 
void cache_index (io_buf &cache, unsigned char index, const features &fs, char *&c)
 
void cache_features (io_buf &cache, const features &fs, uint64_t mask, char *&c)
 
size_t read_cached_index (io_buf &input, unsigned char &index, char *&c)
 
size_t read_cached_features (io_buf &input, features &ours, bool &sorted, char *&c)
 
uint32_t VW::convert (size_t number)
 
void VW::write_example_to_cache (io_buf &output, example *ae, label_parser &lbl_parser, uint64_t parse_mask, VW::details::cache_temp_buffer &temp_buffer)
 
int VW::read_example_from_cache (VW::workspace *all, io_buf &buf, v_array< example *> &examples)
 

Function Documentation

◆ cache_features()

void cache_features ( io_buf cache,
const features fs,
uint64_t  mask,
char *&  c 
)

◆ cache_index()

void cache_index ( io_buf cache,
unsigned char  index,
const features fs,
char *&  c 
)

◆ cache_tag()

void cache_tag ( io_buf cache,
const v_array< char > &  tag 
)

◆ output_byte()

void output_byte ( io_buf cache,
unsigned char  s 
)

◆ read_cached_features()

size_t read_cached_features ( io_buf input,
features ours,
bool &  sorted,
char *&  c 
)

◆ read_cached_index()

size_t read_cached_index ( io_buf input,
unsigned char &  index,
char *&  c 
)

◆ run_len_decode()

char* run_len_decode ( char *  p,
size_t &  i 
)

◆ run_len_encode()

char* run_len_encode ( char *  p,
size_t  i 
)