Byte array binary output.
More...
#include <JByteArrayIO.hh>
Byte array binary output.
This class implements the JWriter interface.
Definition at line 157 of file JByteArrayIO.hh.
◆ JByteArrayWriter()
| JIO::JByteArrayWriter::JByteArrayWriter |
( |
const int | size = 65536 | ) |
|
|
inline |
Constructor.
- Parameters
-
| size | reserved number of bytes |
Definition at line 167 of file JByteArrayIO.hh.
167 :
170 {
171 reserve(size);
172 }
◆ getStatus()
| virtual bool JIO::JByteArrayWriter::getStatus |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ clear()
| void JIO::JByteArrayWriter::clear |
( |
| ) |
|
|
inline |
◆ tellp()
| int JIO::JByteArrayWriter::tellp |
( |
| ) |
const |
|
inline |
◆ seekp()
| void JIO::JByteArrayWriter::seekp |
( |
const int | pos | ) |
|
|
inline |
◆ write()
| virtual int JIO::JByteArrayWriter::write |
( |
const char * | buffer, |
|
|
const int | length ) |
|
inlineoverridevirtual |
◆ operator<<() [1/17]
Write serialisable data object.
- Parameters
-
| object | serialisable data object |
- Returns
- JWriter
Definition at line 146 of file JSerialisable.hh.
147 {
148 return object.write(*this);
149 }
◆ operator<<() [2/17]
| JWriter & JIO::JWriter::operator<< |
( |
const bool | value | ) |
|
|
inlineinherited |
Definition at line 152 of file JSerialisable.hh.
152{
write((
const char*) &value,
sizeof(
bool));
return *
this; }
virtual int write(const char *buffer, const int length)=0
Write byte array.
◆ operator<<() [3/17]
| JWriter & JIO::JWriter::operator<< |
( |
const char | value | ) |
|
|
inlineinherited |
◆ operator<<() [4/17]
| JWriter & JIO::JWriter::operator<< |
( |
const unsigned char | value | ) |
|
|
inlineinherited |
Definition at line 154 of file JSerialisable.hh.
154{
write((
const char*) &value,
sizeof(
unsigned char));
return *
this; }
◆ operator<<() [5/17]
| JWriter & JIO::JWriter::operator<< |
( |
const short | value | ) |
|
|
inlineinherited |
◆ operator<<() [6/17]
| JWriter & JIO::JWriter::operator<< |
( |
const unsigned short | value | ) |
|
|
inlineinherited |
Definition at line 156 of file JSerialisable.hh.
156{
write((
const char*) &value,
sizeof(
unsigned short));
return *
this; }
◆ operator<<() [7/17]
| JWriter & JIO::JWriter::operator<< |
( |
const int | value | ) |
|
|
inlineinherited |
◆ operator<<() [8/17]
| JWriter & JIO::JWriter::operator<< |
( |
const unsigned int | value | ) |
|
|
inlineinherited |
Definition at line 158 of file JSerialisable.hh.
158{
write((
const char*) &value,
sizeof(
unsigned int));
return *
this; }
◆ operator<<() [9/17]
| JWriter & JIO::JWriter::operator<< |
( |
const long int | value | ) |
|
|
inlineinherited |
◆ operator<<() [10/17]
| JWriter & JIO::JWriter::operator<< |
( |
const unsigned long int | value | ) |
|
|
inlineinherited |
Definition at line 160 of file JSerialisable.hh.
160{
write((
const char*) &value,
sizeof(
unsigned long int));
return *
this; }
◆ operator<<() [11/17]
| JWriter & JIO::JWriter::operator<< |
( |
const long long int | value | ) |
|
|
inlineinherited |
Definition at line 161 of file JSerialisable.hh.
161{
write((
const char*) &value,
sizeof(
long long int));
return *
this; }
◆ operator<<() [12/17]
| JWriter & JIO::JWriter::operator<< |
( |
const unsigned long long int | value | ) |
|
|
inlineinherited |
Definition at line 162 of file JSerialisable.hh.
162{
write((
const char*) &value,
sizeof(
unsigned long long int));
return *
this; }
◆ operator<<() [13/17]
| JWriter & JIO::JWriter::operator<< |
( |
const float | value | ) |
|
|
inlineinherited |
◆ operator<<() [14/17]
| JWriter & JIO::JWriter::operator<< |
( |
const double | value | ) |
|
|
inlineinherited |
◆ operator<<() [15/17]
| JWriter & JIO::JWriter::operator<< |
( |
const long double | value | ) |
|
|
inlineinherited |
◆ operator<<() [16/17]
Definition at line 166 of file JSerialisable.hh.
166{
return (*
this) << value.
getID(); }
int getID() const
Get identifier.
◆ operator<<() [17/17]
Definition at line 167 of file JSerialisable.hh.
status_type getStatus(const JType< status_type > &type) const
Get status.
◆ store() [1/2]
Write object.
- Parameters
-
- Returns
- this writer
Definition at line 176 of file JSerialisable.hh.
177 {
178 return object.write(*this);
179 }
◆ store() [2/2]
template<class T >
| JWriter & JIO::JWriter::store |
( |
const T & | object | ) |
|
|
inlineinherited |
Write object.
- Parameters
-
- Returns
- this writer
Definition at line 189 of file JSerialisable.hh.
190 {
191 return *this << object;
192 }
◆ operator bool()
| JLANG::JAbstractObjectStatus::operator bool |
( |
| ) |
const |
|
inlineinherited |
Type conversion operator.
- Returns
- status of this object
Definition at line 33 of file JAbstractObjectStatus.hh.
34 {
36 }
virtual bool getStatus() const =0
Get status of object.
◆ operator!()
| bool JLANG::JAbstractObjectStatus::operator! |
( |
| ) |
const |
|
inlineinherited |
◆ __pos
| int JIO::JByteArrayWriter::__pos |
|
protected |
The documentation for this class was generated from the following file: