Classes | Functions
core/vsl/vsl_block_binary.cxx File Reference

Set of functions to do binary IO on a block of values. More...

#include "vsl_block_binary.h"
#include <vcl_cstddef.h>
#include <vcl_new.h>
#include <vcl_algorithm.h>
#include <vcl_cstdlib.h>
#include <vcl_cassert.h>

Go to the source code of this file.

Classes

struct  vsl_block_t

Functions

vsl_block_t allocate_up_to (vcl_size_t nbytes)
void vsl_block_binary_read_confirm_specialisation (vsl_b_istream &is, bool specialised)
 Error checking.
template<class T >
void vsl_block_binary_write_float_impl (vsl_b_ostream &os, const T *begin, vcl_size_t nelems)
 Write a block of floats to a vsl_b_ostream.
template<class T >
void vsl_block_binary_read_float_impl (vsl_b_istream &is, T *begin, vcl_size_t nelems)
 Read a block of floats from a vsl_b_ostream.
template<class T >
void vsl_block_binary_write_int_impl (vsl_b_ostream &os, const T *begin, vcl_size_t nelems)
 Write a block of signed ints to a vsl_b_ostream.
template<class T >
void vsl_block_binary_read_int_impl (vsl_b_istream &is, T *begin, vcl_size_t nelems)
 Read a block of signed ints from a vsl_b_istream.
template<class T >
void vsl_block_binary_write_byte_impl (vsl_b_ostream &os, const T *begin, vcl_size_t nelems)
 Write a block of bytes to a vsl_b_ostream.
template<class T >
void vsl_block_binary_read_byte_impl (vsl_b_istream &is, T *begin, vcl_size_t nelems)
 Read a block of bytes from a vsl_b_ostream.
template void vsl_block_binary_write_float_impl (vsl_b_ostream &, const double *, vcl_size_t)
template void vsl_block_binary_write_float_impl (vsl_b_ostream &, const float *, vcl_size_t)
template void vsl_block_binary_read_float_impl (vsl_b_istream &, double *, vcl_size_t)
template void vsl_block_binary_read_float_impl (vsl_b_istream &, float *, vcl_size_t)
template void vsl_block_binary_write_int_impl (vsl_b_ostream &, const long *, vcl_size_t)
template void vsl_block_binary_write_int_impl (vsl_b_ostream &, const unsigned long *, vcl_size_t)
template void vsl_block_binary_write_int_impl (vsl_b_ostream &, const int *, vcl_size_t)
template void vsl_block_binary_write_int_impl (vsl_b_ostream &, const unsigned int *, vcl_size_t)
template void vsl_block_binary_write_int_impl (vsl_b_ostream &, const short *, vcl_size_t)
template void vsl_block_binary_write_int_impl (vsl_b_ostream &, const unsigned short *, vcl_size_t)
template void vsl_block_binary_read_int_impl (vsl_b_istream &, long *, vcl_size_t)
template void vsl_block_binary_read_int_impl (vsl_b_istream &, unsigned long *, vcl_size_t)
template void vsl_block_binary_read_int_impl (vsl_b_istream &, int *, vcl_size_t)
template void vsl_block_binary_read_int_impl (vsl_b_istream &, unsigned int *, vcl_size_t)
template void vsl_block_binary_read_int_impl (vsl_b_istream &, short *, vcl_size_t)
template void vsl_block_binary_read_int_impl (vsl_b_istream &, unsigned short *, vcl_size_t)
template void vsl_block_binary_write_byte_impl (vsl_b_ostream &, const signed char *, vcl_size_t)
template void vsl_block_binary_write_byte_impl (vsl_b_ostream &, const unsigned char *, vcl_size_t)
template void vsl_block_binary_read_byte_impl (vsl_b_istream &, signed char *, vcl_size_t)
template void vsl_block_binary_read_byte_impl (vsl_b_istream &, unsigned char *, vcl_size_t)

Detailed Description

Set of functions to do binary IO on a block of values.

Author:
Ian Scott, ISBE Manchester, Feb 2003

Definition in file vsl_block_binary.cxx.


Function Documentation

vsl_block_t allocate_up_to ( vcl_size_t  nbytes)

Definition at line 20 of file vsl_block_binary.cxx.

template<class T >
void vsl_block_binary_read_byte_impl ( vsl_b_istream is,
T *  begin,
vcl_size_t  nelems 
)

Read a block of bytes from a vsl_b_ostream.

Definition at line 264 of file vsl_block_binary.cxx.

template void vsl_block_binary_read_byte_impl ( vsl_b_istream ,
signed char *  ,
vcl_size_t   
)
template void vsl_block_binary_read_byte_impl ( vsl_b_istream ,
unsigned char *  ,
vcl_size_t   
)
void vsl_block_binary_read_confirm_specialisation ( vsl_b_istream is,
bool  specialised 
)

Error checking.

Definition at line 45 of file vsl_block_binary.cxx.

template<class T >
void vsl_block_binary_read_float_impl ( vsl_b_istream is,
T *  begin,
vcl_size_t  nelems 
)

Read a block of floats from a vsl_b_ostream.

Definition at line 98 of file vsl_block_binary.cxx.

template void vsl_block_binary_read_float_impl ( vsl_b_istream ,
double *  ,
vcl_size_t   
)
template void vsl_block_binary_read_float_impl ( vsl_b_istream ,
float *  ,
vcl_size_t   
)
template<class T >
void vsl_block_binary_read_int_impl ( vsl_b_istream is,
T *  begin,
vcl_size_t  nelems 
)

Read a block of signed ints from a vsl_b_istream.

Definition at line 171 of file vsl_block_binary.cxx.

template void vsl_block_binary_read_int_impl ( vsl_b_istream ,
long *  ,
vcl_size_t   
)
template void vsl_block_binary_read_int_impl ( vsl_b_istream ,
unsigned long *  ,
vcl_size_t   
)
template void vsl_block_binary_read_int_impl ( vsl_b_istream ,
int *  ,
vcl_size_t   
)
template void vsl_block_binary_read_int_impl ( vsl_b_istream ,
unsigned int *  ,
vcl_size_t   
)
template void vsl_block_binary_read_int_impl ( vsl_b_istream ,
short *  ,
vcl_size_t   
)
template void vsl_block_binary_read_int_impl ( vsl_b_istream ,
unsigned short *  ,
vcl_size_t   
)
template<class T >
void vsl_block_binary_write_byte_impl ( vsl_b_ostream os,
const T *  begin,
vcl_size_t  nelems 
)

Write a block of bytes to a vsl_b_ostream.

Definition at line 256 of file vsl_block_binary.cxx.

template void vsl_block_binary_write_byte_impl ( vsl_b_ostream ,
const signed char *  ,
vcl_size_t   
)
template void vsl_block_binary_write_byte_impl ( vsl_b_ostream ,
const unsigned char *  ,
vcl_size_t   
)
template<class T >
void vsl_block_binary_write_float_impl ( vsl_b_ostream os,
const T *  begin,
vcl_size_t  nelems 
)

Write a block of floats to a vsl_b_ostream.

Definition at line 69 of file vsl_block_binary.cxx.

template void vsl_block_binary_write_float_impl ( vsl_b_ostream ,
const double *  ,
vcl_size_t   
)
template void vsl_block_binary_write_float_impl ( vsl_b_ostream ,
const float *  ,
vcl_size_t   
)
template<class T >
void vsl_block_binary_write_int_impl ( vsl_b_ostream os,
const T *  begin,
vcl_size_t  nelems 
)

Write a block of signed ints to a vsl_b_ostream.

Definition at line 111 of file vsl_block_binary.cxx.

template void vsl_block_binary_write_int_impl ( vsl_b_ostream ,
const long *  ,
vcl_size_t   
)
template void vsl_block_binary_write_int_impl ( vsl_b_ostream ,
const unsigned long *  ,
vcl_size_t   
)
template void vsl_block_binary_write_int_impl ( vsl_b_ostream ,
const int *  ,
vcl_size_t   
)
template void vsl_block_binary_write_int_impl ( vsl_b_ostream ,
const unsigned int *  ,
vcl_size_t   
)
template void vsl_block_binary_write_int_impl ( vsl_b_ostream ,
const short *  ,
vcl_size_t   
)
template void vsl_block_binary_write_int_impl ( vsl_b_ostream ,
const unsigned short *  ,
vcl_size_t   
)