Functions
vsl_block_binary_rle.h File Reference

Efficiently Store/Load a block of values using Run length encoding. More...

#include <algorithm>
#include <iostream>
#include <vsl/vsl_binary_io.h>
#include <vsl/vsl_binary_explicit_io.h>

Go to the source code of this file.

Functions

template<class T >
void vsl_block_binary_rle_write (vsl_b_ostream &os, const T *begin, std::size_t nelems)
 Write a block of values to a vsl_b_ostream, as (value count) pairs. More...
 
template<class T >
void vsl_block_binary_rle_read (vsl_b_istream &is, T *begin, std::size_t nelems)
 Read a block of values from a vsl_b_ostream, potentially very efficiently for fundamental types. More...
 

Detailed Description

Efficiently Store/Load a block of values using Run length encoding.

Author
Ian Scott, Imorphics, Jun 2010

Definition in file vsl_block_binary_rle.h.

Function Documentation

◆ vsl_block_binary_rle_read()

template<class T >
void vsl_block_binary_rle_read ( vsl_b_istream is,
T *  begin,
std::size_t  nelems 
)
inline

Read a block of values from a vsl_b_ostream, potentially very efficiently for fundamental types.

Definition at line 47 of file vsl_block_binary_rle.h.

◆ vsl_block_binary_rle_write()

template<class T >
void vsl_block_binary_rle_write ( vsl_b_ostream os,
const T *  begin,
std::size_t  nelems 
)
inline

Write a block of values to a vsl_b_ostream, as (value count) pairs.

Definition at line 19 of file vsl_block_binary_rle.h.