bpf::io::IDataOutputStream class

Represents an arbitary stream with serialization capability

Base classes

class IOutputStream

Derived classes

class BinaryWriter final
class ConsoleWriter final
class TextWriter final

Constructors, destructors, conversion operators

~IDataOutputStream() override

Public functions

auto operator<<(uint8 u) -> IDataOutputStream& pure virtual
auto operator<<(uint16 u) -> IDataOutputStream& pure virtual
auto operator<<(uint32 u) -> IDataOutputStream& pure virtual
auto operator<<(uint64 u) -> IDataOutputStream& pure virtual
auto operator<<(int8 i) -> IDataOutputStream& pure virtual
auto operator<<(int16 i) -> IDataOutputStream& pure virtual
auto operator<<(fint i) -> IDataOutputStream& pure virtual
auto operator<<(int64 i) -> IDataOutputStream& pure virtual
auto operator<<(float f) -> IDataOutputStream& pure virtual
auto operator<<(double d) -> IDataOutputStream& pure virtual
auto operator<<(bool b) -> IDataOutputStream& pure virtual
auto operator<<(const bpf::String& str) -> IDataOutputStream& pure virtual
auto operator<<(const char* str) -> IDataOutputStream& pure virtual
void Flush() pure virtual

Function documentation

IDataOutputStream& bpf::io::IDataOutputStream::operator<<(uint8 u) pure virtual

Parameters
u uint8 to serialize
Returns IDataOutputStream&

Serialize a number

IDataOutputStream& bpf::io::IDataOutputStream::operator<<(uint16 u) pure virtual

Parameters
u uint16 to serialize
Returns IDataOutputStream&

Serialize a number

IDataOutputStream& bpf::io::IDataOutputStream::operator<<(uint32 u) pure virtual

Parameters
u uint32 to serialize
Returns IDataOutputStream&

Serialize a number

IDataOutputStream& bpf::io::IDataOutputStream::operator<<(uint64 u) pure virtual

Parameters
u uint64 to serialize
Returns IDataOutputStream&

Serialize a number

IDataOutputStream& bpf::io::IDataOutputStream::operator<<(int8 i) pure virtual

Parameters
i int8 to serialize
Returns IDataOutputStream&

Serialize a number

IDataOutputStream& bpf::io::IDataOutputStream::operator<<(int16 i) pure virtual

Parameters
i int16 to serialize
Returns IDataOutputStream&

Serialize a number

IDataOutputStream& bpf::io::IDataOutputStream::operator<<(fint i) pure virtual

Parameters
i int32 to serialize
Returns IDataOutputStream&

Serialize a number

IDataOutputStream& bpf::io::IDataOutputStream::operator<<(int64 i) pure virtual

Parameters
i int64 to serialize
Returns IDataOutputStream&

Serialize a number

IDataOutputStream& bpf::io::IDataOutputStream::operator<<(float f) pure virtual

Parameters
f float to serialize
Returns IDataOutputStream&

Serialize a number

IDataOutputStream& bpf::io::IDataOutputStream::operator<<(double d) pure virtual

Parameters
d double to serialize
Returns IDataOutputStream&

Serialize a number

IDataOutputStream& bpf::io::IDataOutputStream::operator<<(bool b) pure virtual

Parameters
b value to serialize
Returns IDataOutputStream&

Serialize a boolean

IDataOutputStream& bpf::io::IDataOutputStream::operator<<(const bpf::String& str) pure virtual

Parameters
str high-level string to serialize
Returns IDataOutputStream&

Serialize a string

IDataOutputStream& bpf::io::IDataOutputStream::operator<<(const char* str) pure virtual

Parameters
str low-level null terminated c-like string to serialize
Returns IDataOutputStream&

Serialize a string

void bpf::io::IDataOutputStream::Flush() pure virtual

Write all the content currently stored in buffer to the underlying stream Only usefull for buffered serializers