47void BinaryWriter::writeVariableLengthInteger(std::uint64_t value,
void (*
getBytes)(std::uint64_t,
char *))
58 throw ConversionException(
"The variable-length integer to be written exceeds the maximum.");
void giveOwnership()
The writer will take ownership over the assigned stream.
void setStream(std::ostream *stream, bool giveOwnership=false)
Assigns the stream the writer will write to when calling one of the write-methods.
const std::ostream * stream() const
Returns a pointer to the stream the writer will write to when calling one of the write-methods.
Contains all utilities provides by the c++utilities library.
IntegralType stringToNumber(const StringType &string, BaseType base=10)
Converts the given string to an unsigned/signed number assuming string uses the specified base.