Functions to perform consistent binary IO within vsl. More...
#include "vsl_binary_io.h"
#include <vcl_cstddef.h>
#include <vcl_cassert.h>
#include <vcl_map.txx>
#include <vcl_cstdlib.h>
#include <vsl/vsl_binary_explicit_io.h>
Go to the source code of this file.
Functions | |
void | vsl_b_write (vsl_b_ostream &os, char n) |
Write char to vsl_b_ostream. | |
void | vsl_b_read (vsl_b_istream &is, char &n) |
Read char from vsl_b_istream. | |
void | vsl_b_write (vsl_b_ostream &os, signed char n) |
Write signed char to vsl_b_ostream. | |
void | vsl_b_read (vsl_b_istream &is, signed char &n) |
Read signed char from vsl_b_istream. | |
void | vsl_b_write (vsl_b_ostream &os, unsigned char n) |
Write to vsl_b_ostream. | |
void | vsl_b_read (vsl_b_istream &is, unsigned char &n) |
Read from vsl_b_istream. | |
void | vsl_b_write (vsl_b_ostream &os, const vcl_string &str) |
Write to vsl_b_ostream. | |
void | vsl_b_read (vsl_b_istream &is, vcl_string &str) |
Read from vsl_b_istream. | |
void | vsl_b_write (vsl_b_ostream &os, const char *s) |
Write to vsl_b_ostream. | |
void | vsl_b_read (vsl_b_istream &is, char *s) |
Read from vsl_b_istream. | |
void | vsl_b_write (vsl_b_ostream &os, bool b) |
Write bool to vsl_b_ostream. | |
void | vsl_b_read (vsl_b_istream &is, bool &b) |
Read bool from vsl_b_istream. | |
void | vsl_b_write (vsl_b_ostream &os, int n) |
void | vsl_b_read (vsl_b_istream &is, int &n) |
void | vsl_b_write (vsl_b_ostream &os, unsigned int n) |
Write to vsl_b_ostream. | |
void | vsl_b_read (vsl_b_istream &is, unsigned int &n) |
Read from vsl_b_istream. | |
void | vsl_b_write (vsl_b_ostream &os, short n) |
Write to vsl_b_ostream. | |
void | vsl_b_read (vsl_b_istream &is, short &n) |
Read from vsl_b_istream. | |
void | vsl_b_write (vsl_b_ostream &os, unsigned short n) |
Write to vsl_b_ostream. | |
void | vsl_b_read (vsl_b_istream &is, unsigned short &n) |
Read from vsl_b_istream. | |
void | vsl_b_write (vsl_b_ostream &os, long n) |
Write to vsl_b_ostream. | |
void | vsl_b_read (vsl_b_istream &is, long &n) |
Read from vsl_b_istream. | |
void | vsl_b_write (vsl_b_ostream &os, unsigned long n) |
Write to vsl_b_ostream. | |
void | vsl_b_read (vsl_b_istream &is, unsigned long &n) |
Read from vsl_b_istream. | |
void | vsl_b_write (vsl_b_ostream &os, float n) |
Write to vsl_b_ostream. | |
void | vsl_b_read (vsl_b_istream &is, float &n) |
Read from vsl_b_istream. | |
void | vsl_b_write (vsl_b_ostream &os, double n) |
Write to vsl_b_ostream. | |
void | vsl_b_read (vsl_b_istream &is, double &n) |
Read from vsl_b_istream. | |
bool | vsl_b_istream_test (vcl_istream &is) |
Test to see if a stream really is a binary vsl file. |
Functions to perform consistent binary IO within vsl.
Definition in file vsl_binary_io.cxx.
bool vsl_b_istream_test | ( | vcl_istream & | is | ) |
Test to see if a stream really is a binary vsl file.
Definition at line 711 of file vsl_binary_io.cxx.
void vsl_b_read | ( | vsl_b_istream & | is, |
char & | n | ||
) |
Read char from vsl_b_istream.
Definition at line 24 of file vsl_binary_io.cxx.
void vsl_b_read | ( | vsl_b_istream & | is, |
signed char & | n | ||
) |
Read signed char from vsl_b_istream.
Definition at line 34 of file vsl_binary_io.cxx.
void vsl_b_read | ( | vsl_b_istream & | is, |
unsigned char & | n | ||
) |
Read from vsl_b_istream.
Definition at line 45 of file vsl_binary_io.cxx.
void vsl_b_read | ( | vsl_b_istream & | is, |
vcl_string & | str | ||
) |
Read from vsl_b_istream.
Definition at line 60 of file vsl_binary_io.cxx.
void vsl_b_read | ( | vsl_b_istream & | is, |
char * | s | ||
) |
Read from vsl_b_istream.
s
for expected length of string. This function is easy to crash mith a malformed data file. Definition at line 84 of file vsl_binary_io.cxx.
void vsl_b_read | ( | vsl_b_istream & | is, |
bool & | b | ||
) |
Read bool from vsl_b_istream.
Definition at line 102 of file vsl_binary_io.cxx.
void vsl_b_read | ( | vsl_b_istream & | is, |
int & | n | ||
) |
Definition at line 117 of file vsl_binary_io.cxx.
void vsl_b_read | ( | vsl_b_istream & | is, |
unsigned int & | n | ||
) |
Read from vsl_b_istream.
Definition at line 146 of file vsl_binary_io.cxx.
void vsl_b_read | ( | vsl_b_istream & | is, |
short & | n | ||
) |
Read from vsl_b_istream.
Definition at line 175 of file vsl_binary_io.cxx.
void vsl_b_read | ( | vsl_b_istream & | is, |
unsigned short & | n | ||
) |
Read from vsl_b_istream.
Definition at line 204 of file vsl_binary_io.cxx.
void vsl_b_read | ( | vsl_b_istream & | is, |
long & | n | ||
) |
Read from vsl_b_istream.
Definition at line 233 of file vsl_binary_io.cxx.
void vsl_b_read | ( | vsl_b_istream & | is, |
unsigned long & | n | ||
) |
Read from vsl_b_istream.
Definition at line 261 of file vsl_binary_io.cxx.
void vsl_b_read | ( | vsl_b_istream & | is, |
float & | n | ||
) |
Read from vsl_b_istream.
Definition at line 419 of file vsl_binary_io.cxx.
void vsl_b_read | ( | vsl_b_istream & | is, |
double & | n | ||
) |
Read from vsl_b_istream.
Definition at line 431 of file vsl_binary_io.cxx.
void vsl_b_write | ( | vsl_b_ostream & | os, |
char | n | ||
) |
Write char to vsl_b_ostream.
Definition at line 19 of file vsl_binary_io.cxx.
void vsl_b_write | ( | vsl_b_ostream & | os, |
signed char | n | ||
) |
Write signed char to vsl_b_ostream.
Definition at line 29 of file vsl_binary_io.cxx.
void vsl_b_write | ( | vsl_b_ostream & | os, |
unsigned char | n | ||
) |
Write to vsl_b_ostream.
Definition at line 40 of file vsl_binary_io.cxx.
void vsl_b_write | ( | vsl_b_ostream & | os, |
const vcl_string & | str | ||
) |
Write to vsl_b_ostream.
Definition at line 51 of file vsl_binary_io.cxx.
void vsl_b_write | ( | vsl_b_ostream & | os, |
const char * | s | ||
) |
Write to vsl_b_ostream.
Definition at line 72 of file vsl_binary_io.cxx.
void vsl_b_write | ( | vsl_b_ostream & | os, |
bool | b | ||
) |
Write bool to vsl_b_ostream.
Definition at line 94 of file vsl_binary_io.cxx.
void vsl_b_write | ( | vsl_b_ostream & | os, |
int | n | ||
) |
Definition at line 110 of file vsl_binary_io.cxx.
void vsl_b_write | ( | vsl_b_ostream & | os, |
unsigned int | n | ||
) |
Write to vsl_b_ostream.
Definition at line 138 of file vsl_binary_io.cxx.
void vsl_b_write | ( | vsl_b_ostream & | os, |
short | n | ||
) |
Write to vsl_b_ostream.
Definition at line 168 of file vsl_binary_io.cxx.
void vsl_b_write | ( | vsl_b_ostream & | os, |
unsigned short | n | ||
) |
Write to vsl_b_ostream.
Definition at line 196 of file vsl_binary_io.cxx.
void vsl_b_write | ( | vsl_b_ostream & | os, |
long | n | ||
) |
Write to vsl_b_ostream.
Definition at line 226 of file vsl_binary_io.cxx.
void vsl_b_write | ( | vsl_b_ostream & | os, |
unsigned long | n | ||
) |
Write to vsl_b_ostream.
Definition at line 253 of file vsl_binary_io.cxx.
void vsl_b_write | ( | vsl_b_ostream & | os, |
float | n | ||
) |
Write to vsl_b_ostream.
Number is saved with ANSI/IEEE Standard 754-1985 single precision.
Definition at line 413 of file vsl_binary_io.cxx.
void vsl_b_write | ( | vsl_b_ostream & | os, |
double | n | ||
) |
Write to vsl_b_ostream.
Number is saved with ANSI/IEEE Standard 754-1985 double precision.
Definition at line 425 of file vsl_binary_io.cxx.