Vowpal Wabbit
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Typedefs | Functions | Variables
io_buf.h File Reference
#include "vw/common/hash.h"
#include "vw/common/string_view.h"
#include "vw/io/io_adapter.h"
#include <algorithm>
#include <cassert>
#include <cstddef>
#include <cstdlib>
#include <iostream>
#include <memory>
#include <sstream>
#include <vector>
#include "vw/common/vw_exception.h"
#include "vw/common/vw_throw.h"

Classes

struct  VW::desired_align
 
struct  VW::desired_align::flatbuffer_t
 
class  VW::io_buf
 

Namespaces

namespace  VW
 
namespace  VW::known_alignments
 
namespace  VW::details
 

Macros

#define DEPRECATED_WRITEIT(what, str)
 
#define DEPRECATED_WRITEITVAR(what, str, mywhat)
 

Typedefs

using io_buf = VW::io_buf
 

Functions

size_t VW::details::bin_read (io_buf &i, char *data, size_t len)
 
size_t VW::details::bin_write (io_buf &o, const char *data, uint32_t len)
 
size_t VW::details::bin_text_write (io_buf &io, char *data, size_t len, std::stringstream &msg, bool text)
 
size_t VW::details::bin_text_read_write (io_buf &io, char *data, size_t len, bool read, std::stringstream &msg, bool text)
 
size_t VW::details::bin_text_write_fixed (io_buf &io, char *data, size_t len, std::stringstream &msg, bool text)
 
size_t VW::details::bin_text_read_write_fixed (io_buf &io, char *data, size_t len, bool read, std::stringstream &msg, bool text)
 
size_t VW::details::bin_text_read_write_fixed_validated (io_buf &io, char *data, size_t len, bool read, std::stringstream &msg, bool text)
 

Variables

const desired_align VW::known_alignments::TEXT = desired_align::align_for<char>()
 

Macro Definition Documentation

◆ DEPRECATED_WRITEIT

#define DEPRECATED_WRITEIT (   what,
  str 
)
Value:
do { \
msg << str << " = " << what << " "; \
::VW::details::bin_text_read_write_fixed(model_file, (char*)&what, sizeof(what), read, msg, text); \
} while (0);

◆ DEPRECATED_WRITEITVAR

#define DEPRECATED_WRITEITVAR (   what,
  str,
  mywhat 
)
Value:
auto mywhat = (what); \
do { \
msg << str << " = " << mywhat << " "; \
::VW::details::bin_text_read_write_fixed(model_file, (char*)&mywhat, sizeof(mywhat), read, msg, text); \
} while (0);

Typedef Documentation

◆ io_buf

using io_buf = VW::io_buf