Functions
vsl_b_read_block_old.h File Reference

Backwards compatibility support only. More...

#include <iostream>
#include <vxl_config.h>
#include <vcl_compiler_detection.h>
#include <vsl/vsl_binary_io.h>
#include <vsl/vsl_binary_explicit_io.h>
#include <vcl_deprecated.h>

Go to the source code of this file.

Functions

template<class T >
void vsl_b_read_block_old (vsl_b_istream &is, T *begin, std::size_t nelems)
 Read a block of values from a vsl_b_istream. More...
 
template<>
void vsl_b_read_block_old (vsl_b_istream &is, double *begin, std::size_t nelems)
 Read a block of doubles from a vsl_b_istream. More...
 
template<>
void vsl_b_read_block_old (vsl_b_istream &is, float *begin, std::size_t nelems)
 Read a block of floats from a vsl_b_istream. More...
 
template<>
void vsl_b_read_block_old (vsl_b_istream &is, int *begin, std::size_t nelems)
 Read a block of signed ints from a vsl_b_istream. More...
 
template<>
void vsl_b_read_block_old (vsl_b_istream &is, unsigned int *begin, std::size_t nelems)
 Read a block of unsigned ints from a vsl_b_istream. More...
 
template<>
void vsl_b_read_block_old (vsl_b_istream &is, short *begin, std::size_t nelems)
 Read a block of signed shorts from a vsl_b_istream. More...
 
template<>
void vsl_b_read_block_old (vsl_b_istream &is, unsigned short *begin, std::size_t nelems)
 Read a block of unsigned shorts from a vsl_b_istream. More...
 
template<>
void vsl_b_read_block_old (vsl_b_istream &is, long *begin, std::size_t nelems)
 Read a block of signed longs from a vsl_b_istream. More...
 
template<>
void vsl_b_read_block_old (vsl_b_istream &is, unsigned long *begin, std::size_t nelems)
 Read a block of unsigned longs from a vsl_b_istream. More...
 

Detailed Description

Backwards compatibility support only.

Author
Ian Scott (Manchester) May 2003

This file should only be used by existing binary io code that wishes to maintain backwards compatibility with existing VSL files. Users should have no reason to include this file.

Definition in file vsl_b_read_block_old.h.

Function Documentation

◆ vsl_b_read_block_old() [1/9]

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

Read a block of values from a vsl_b_istream.

If you want to output a block of fundamental data types very efficiently, then just #include <vsl_binary_explicit_io.h>

Deprecated:
in favour of vsl_block_binary_read

Definition at line 39 of file vsl_b_read_block_old.h.

◆ vsl_b_read_block_old() [2/9]

template<>
void vsl_b_read_block_old ( vsl_b_istream is,
double *  begin,
std::size_t  nelems 
)
inline

Read a block of doubles from a vsl_b_istream.

This function is very speed efficient.

Deprecated:
in favour of vsl_block_binary_read

Definition at line 52 of file vsl_b_read_block_old.h.

◆ vsl_b_read_block_old() [3/9]

template<>
void vsl_b_read_block_old ( vsl_b_istream is,
float *  begin,
std::size_t  nelems 
)
inline

Read a block of floats from a vsl_b_istream.

This function is very speed efficient.

Deprecated:
in favour of vsl_block_binary_read

Definition at line 65 of file vsl_b_read_block_old.h.

◆ vsl_b_read_block_old() [4/9]

template<>
void vsl_b_read_block_old ( vsl_b_istream is,
int *  begin,
std::size_t  nelems 
)
inline

Read a block of signed ints from a vsl_b_istream.

This function is very speed efficient, but temporarily allocates a block of memory the about 1.2 times size of the block being read.

Deprecated:
in favour of vsl_block_binary_read

Definition at line 80 of file vsl_b_read_block_old.h.

◆ vsl_b_read_block_old() [5/9]

template<>
void vsl_b_read_block_old ( vsl_b_istream is,
unsigned int *  begin,
std::size_t  nelems 
)
inline

Read a block of unsigned ints from a vsl_b_istream.

This function is very speed efficient, but temporarily allocates a block of memory the about 1.2 times size of the block being read.

Deprecated:
in favour of vsl_block_binary_read

Definition at line 111 of file vsl_b_read_block_old.h.

◆ vsl_b_read_block_old() [6/9]

template<>
void vsl_b_read_block_old ( vsl_b_istream is,
short *  begin,
std::size_t  nelems 
)
inline

Read a block of signed shorts from a vsl_b_istream.

This function is very speed efficient, but temporarily allocates a block of memory the about 1.2 times size of the block being read.

Deprecated:
in favour of vsl_block_binary_read

Definition at line 142 of file vsl_b_read_block_old.h.

◆ vsl_b_read_block_old() [7/9]

template<>
void vsl_b_read_block_old ( vsl_b_istream is,
unsigned short *  begin,
std::size_t  nelems 
)
inline

Read a block of unsigned shorts from a vsl_b_istream.

This function is very speed efficient, but temporarily allocates a block of memory the about 1.2 times size of the block being read.

Deprecated:
in favour of vsl_block_binary_read

Definition at line 173 of file vsl_b_read_block_old.h.

◆ vsl_b_read_block_old() [8/9]

template<>
void vsl_b_read_block_old ( vsl_b_istream is,
long *  begin,
std::size_t  nelems 
)
inline

Read a block of signed longs from a vsl_b_istream.

This function is very speed efficient, but temporarily allocates a block of memory the about 1.2 times size of the block being read.

Deprecated:
in favour of vsl_block_binary_read

Definition at line 204 of file vsl_b_read_block_old.h.

◆ vsl_b_read_block_old() [9/9]

template<>
void vsl_b_read_block_old ( vsl_b_istream is,
unsigned long *  begin,
std::size_t  nelems 
)
inline

Read a block of unsigned longs from a vsl_b_istream.

This function is very speed efficient, but temporarily allocates a block of memory the about 1.2 times size of the block being read.

Deprecated:
in favour of vsl_block_binary_read

Definition at line 235 of file vsl_b_read_block_old.h.