#include <Logical.H>
Public Member Functions | |
~Writer () | |
Ends writing this Logical stream. | |
size_t | dataSize () |
Get the current size of the data payload. | |
void | dataSize (size_t) |
Set the size of the next packet's data payload. | |
void | flush () |
Flush previously enqued packets. | |
void | beginData () |
Set the current packet to begin data packets. | |
void | granulePosition (Position) |
Set granule position of current packet. | |
Position | granulePosition () |
Get granule position of the last enqued packet. | |
size_t | pageSize () |
Get the current page size for transport. | |
void | pageSize (size_t) |
Set size for transport pages. | |
Writer & | operator++ () |
Creates the next packet and enques the last. | |
Packet * | operator-> () const throw () |
Get to the Packet methods. |
Do not derive from Writer. It is an iterator-like class for writing packets.
Ogg::Logical::Writer::~Writer | ( | ) |
size_t Ogg::Logical::Writer::dataSize | ( | ) |
Get the current size of the data payload.
void Ogg::Logical::Writer::dataSize | ( | size_t | ) |
Set the size of the next packet's data payload.
void Ogg::Logical::Writer::flush | ( | ) |
Flush previously enqued packets.
void Ogg::Logical::Writer::beginData | ( | ) |
Set the current packet to begin data packets.
Writer assumes header packets until beginData() is called.
void Ogg::Logical::Writer::granulePosition | ( | Position | ) |
Set granule position of current packet.
Default increments last granulePosition by 1.
Position Ogg::Logical::Writer::granulePosition | ( | ) |
Get granule position of the last enqued packet.
size_t Ogg::Logical::Writer::pageSize | ( | ) |
Get the current page size for transport.
void Ogg::Logical::Writer::pageSize | ( | size_t | ) |
Set size for transport pages.
beginning with the page where the current packet begins.
Writer& Ogg::Logical::Writer::operator++ | ( | ) |
Creates the next packet and enques the last.