Byte array binary input.
More...
#include <JByteArrayIO.hh>
Byte array binary input.
This class implements the JReader interface.
Definition at line 25 of file JByteArrayIO.hh.
JIO::JByteArrayReader::JByteArrayReader |
( |
| ) |
|
|
inline |
JIO::JByteArrayReader::JByteArrayReader |
( |
const char * |
buffer, |
|
|
const int |
length = 0 |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
buffer | pointer to input data |
length | number of bytes |
Definition at line 45 of file JByteArrayIO.hh.
int JIO::JByteArrayReader::size |
( |
| ) |
const |
|
inline |
const char* JIO::JByteArrayReader::data |
( |
| ) |
const |
|
inline |
int JIO::JByteArrayReader::getRemainingSize |
( |
| ) |
const |
|
inline |
Get remaining size.
- Returns
- number of bytes
Definition at line 79 of file JByteArrayIO.hh.
const char* JIO::JByteArrayReader::getRemainingData |
( |
| ) |
const |
|
inline |
Get remaining data.
- Returns
- pointer to remaining data
Definition at line 90 of file JByteArrayIO.hh.
int JIO::JByteArrayReader::tellg |
( |
| ) |
const |
|
inline |
void JIO::JByteArrayReader::seekg |
( |
const int |
pos | ) |
|
|
inline |
virtual bool JIO::JByteArrayReader::getStatus |
( |
| ) |
const |
|
inlinevirtual |
virtual int JIO::JByteArrayReader::read |
( |
char * |
buffer, |
|
|
const int |
length |
|
) |
| |
|
inlinevirtual |
virtual void JIO::JReader::clear |
( |
| ) |
|
|
inlinevirtualinherited |
Read serialisable data object.
- Parameters
-
object | serialisable data object |
- Returns
- JReader
Definition at line 80 of file JSerialisable.hh.
82 return object.read(*
this);
JReader& JIO::JReader::operator>> |
( |
bool & |
value | ) |
|
|
inlineinherited |
JReader& JIO::JReader::operator>> |
( |
char & |
value | ) |
|
|
inlineinherited |
JReader& JIO::JReader::operator>> |
( |
unsigned char & |
value | ) |
|
|
inlineinherited |
Definition at line 88 of file JSerialisable.hh.
88 {
read((
char*) &value,
sizeof(
unsigned char));
return *
this; }
JReader& JIO::JReader::operator>> |
( |
short & |
value | ) |
|
|
inlineinherited |
JReader& JIO::JReader::operator>> |
( |
unsigned short & |
value | ) |
|
|
inlineinherited |
Definition at line 90 of file JSerialisable.hh.
90 {
read((
char*) &value,
sizeof(
unsigned short));
return *
this; }
JReader& JIO::JReader::operator>> |
( |
int & |
value | ) |
|
|
inlineinherited |
JReader& JIO::JReader::operator>> |
( |
unsigned int & |
value | ) |
|
|
inlineinherited |
Definition at line 92 of file JSerialisable.hh.
92 {
read((
char*) &value,
sizeof(
unsigned int));
return *
this; }
JReader& JIO::JReader::operator>> |
( |
long int & |
value | ) |
|
|
inlineinherited |
JReader& JIO::JReader::operator>> |
( |
unsigned long int & |
value | ) |
|
|
inlineinherited |
Definition at line 94 of file JSerialisable.hh.
94 {
read((
char*) &value,
sizeof(
unsigned long int));
return *
this; }
JReader& JIO::JReader::operator>> |
( |
long long int & |
value | ) |
|
|
inlineinherited |
Definition at line 95 of file JSerialisable.hh.
95 {
read((
char*) &value,
sizeof(
long long int));
return *
this; }
JReader& JIO::JReader::operator>> |
( |
unsigned long long int & |
value | ) |
|
|
inlineinherited |
Definition at line 96 of file JSerialisable.hh.
96 {
read((
char*) &value,
sizeof(
unsigned long long int));
return *
this; }
JReader& JIO::JReader::operator>> |
( |
float & |
value | ) |
|
|
inlineinherited |
JReader& JIO::JReader::operator>> |
( |
double & |
value | ) |
|
|
inlineinherited |
JReader& JIO::JReader::operator>> |
( |
long double & |
value | ) |
|
|
inlineinherited |
Definition at line 99 of file JSerialisable.hh.
99 {
read((
char*) &value,
sizeof(
long double));
return *
this; }
Read object.
- Parameters
-
- Returns
- this reader
Definition at line 108 of file JSerialisable.hh.
110 return object.read(*
this);
template<class T >
JReader& JIO::JReader::load |
( |
T & |
object | ) |
|
|
inlineinherited |
Read object.
- Parameters
-
- Returns
- this reader
Definition at line 121 of file JSerialisable.hh.
123 return *
this >> object;
JLANG::JAbstractObjectStatus::operator bool |
( |
| ) |
const |
|
inlineinherited |
Type conversion operator.
- Returns
- status of this object
Definition at line 33 of file JAbstractObjectStatus.hh.
virtual bool getStatus() const =0
Get status of object.
bool JLANG::JAbstractObjectStatus::operator! |
( |
| ) |
const |
|
inlineinherited |
Negated status of this object.
- Returns
- negated status of this object
Definition at line 44 of file JAbstractObjectStatus.hh.
virtual bool getStatus() const =0
Get status of object.
const char* JIO::JByteArrayReader::__data |
|
protected |
int JIO::JByteArrayReader::__size |
|
protected |
int JIO::JByteArrayReader::__pos |
|
protected |
The documentation for this class was generated from the following file: