34 void WriteData(
size_t count,
const void * data);
39 size_t WriteData(
size_t max_count,
const std::vector<uint8_t>& data,
size_t offset = 0);
44 size_t WriteData(
const std::vector<uint8_t>& data,
size_t offset = 0);
49 void WriteData(
size_t count, std::string text,
char padding =
'\0');
59 void WriteData(
size_t count, std::istream& in);
69 void WriteWord(
size_t bytes, uint64_t value);
72 void ForceSeek(offset_t offset);
78 void Seek(offset_t offset);
83 void Skip(offset_t offset);
88 void SeekEnd(offset_t offset = 0);
98 void FillTo(offset_t position);
A helper class, encapsulating functionality needed to export binary data.
Definition writer.h:15
void Seek(offset_t offset)
Jump to a specific location in the ouput stream.
Definition writer.cc:94
void WriteData(size_t count, const void *data)
Write out a sequence of bytes.
Definition writer.cc:6
EndianType endiantype
The default endianness of the binary format, used for reading multibyte numeric data.
Definition writer.h:20
void Skip(offset_t offset)
Jump to a distance in the output stream.
Definition writer.cc:102
void SeekEnd(offset_t offset=0)
Jump to a specific offset from the end.
Definition writer.cc:111
void FillTo(offset_t position)
Move to a specific offset, fill with zeroes if needed.
Definition writer.cc:124
void AlignTo(offset_t align)
Align the current pointer.
Definition writer.cc:145
std::ostream * out
The input stream.
Definition writer.h:24
void WriteWord(size_t bytes, uint64_t value, EndianType endiantype)
Read a word.
Definition writer.cc:65
offset_t Tell()
Retrieve the current location.
Definition writer.cc:119