Functions
core/vsl/vsl_block_binary_rle.h File Reference

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

#include <vcl_algorithm.h>
#include <vsl/vsl_binary_io.h>
#include <vsl/vsl_binary_explicit_io.h>
#include <vcl_iostream.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, vcl_size_t nelems)
 Write a block of values to a vsl_b_ostream, as (value count) pairs.
template<class T >
void vsl_block_binary_rle_read (vsl_b_istream &is, T *begin, vcl_size_t nelems)
 Read a block of values from a vsl_b_ostream, potentially very efficiently for fundamental types.

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

template<class T >
void vsl_block_binary_rle_read ( vsl_b_istream is,
T *  begin,
vcl_size_t  nelems 
) [inline]

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

Definition at line 44 of file vsl_block_binary_rle.h.

template<class T >
void vsl_block_binary_rle_write ( vsl_b_ostream os,
const T *  begin,
vcl_size_t  nelems 
) [inline]

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

Definition at line 16 of file vsl_block_binary_rle.h.