4#ifndef RUDIMENTS_OUTPUT_H
5#define RUDIMENTS_OUTPUT_H
7#include <rudiments/private/outputincludes.h>
28 virtual off64_t setPositionRelativeToBeginning(off64_t offset);
37 virtual off64_t setPositionRelativeToCurrent(off64_t offset);
47 virtual off64_t setPositionRelativeToEnd(off64_t offset);
55 virtual off64_t getPosition();
61 virtual ssize_t
write(
const byte_t *
string,
size_t size)=0;
66 virtual ssize_t
write(
const char *
string)=0;
73 virtual ssize_t
write(
const char *
string,
size_t length)=0;
83 virtual ssize_t
write(
const wchar_t *
string)=0;
90 virtual ssize_t
write(
const wchar_t *
string,
size_t length)=0;
118 virtual ssize_t
write(int16_t number)=0;
123 virtual ssize_t
write(int32_t number)=0;
128 virtual ssize_t
write(int64_t number)=0;
138 virtual ssize_t
write(uint16_t number)=0;
143 virtual ssize_t
write(uint32_t number)=0;
148 virtual ssize_t
write(uint64_t number)=0;
153 virtual ssize_t
write(
float number)=0;
158 virtual ssize_t
write(
double number)=0;
169 virtual ssize_t
write(
const byte_t *
string,
size_t size,
170 int32_t sec, int32_t usec);
180 virtual ssize_t
write(
const char *
string,
181 int32_t sec, int32_t usec);
193 virtual ssize_t
write(
const char *
string,
size_t length,
194 int32_t sec, int32_t usec);
205 int32_t sec, int32_t usec);
215 virtual ssize_t
write(
const wchar_t *
string,
216 int32_t sec, int32_t usec);
228 virtual ssize_t
write(
const wchar_t *
string,
size_t length,
229 int32_t sec, int32_t usec);
240 int32_t sec, int32_t usec);
251 int32_t sec, int32_t usec);
263 virtual ssize_t
writeUcs2(
const ucs2_t *
string,
size_t length,
264 int32_t sec, int32_t usec);
275 int32_t sec, int32_t usec);
285 virtual ssize_t
write(int16_t number,
286 int32_t sec, int32_t usec);
296 virtual ssize_t
write(int32_t number,
297 int32_t sec, int32_t usec);
307 virtual ssize_t
write(int64_t number,
308 int32_t sec, int32_t usec);
319 int32_t sec, int32_t usec);
329 virtual ssize_t
write(uint16_t number,
330 int32_t sec, int32_t usec);
340 virtual ssize_t
write(uint32_t number,
341 int32_t sec, int32_t usec);
351 virtual ssize_t
write(uint64_t number,
352 int32_t sec, int32_t usec);
363 int32_t sec, int32_t usec);
373 virtual ssize_t
write(
double number,
374 int32_t sec, int32_t usec);
390 virtual ssize_t printf(
const char *format, ...);
408 virtual ssize_t printf(
const char *format, va_list *argp);
424 virtual ssize_t printf(
const wchar_t *format, ...);
442 virtual ssize_t printf(
const wchar_t *format, va_list *argp);
458 virtual ssize_t printfUcs2(
const ucs2_t *format, ...);
476 virtual ssize_t printfUcs2(
const ucs2_t *format, va_list *argp);
557 uint64_t size, uint16_t indent);
559 #include <rudiments/private/output.h>
562#include <rudiments/private/outputinlines.h>
Definition character.h:11
void printBits(byte_t value)
virtual ssize_t write(const char *string)=0
virtual ssize_t writeUcs2(const ucs2_t *string, int32_t sec, int32_t usec)
virtual ssize_t write(wchar_t character)=0
void safePrint(const byte_t *str)
virtual ssize_t write(byte_t character)=0
virtual ssize_t write(const char *string, int32_t sec, int32_t usec)
void printBits(char value)
virtual ssize_t write(float number, int32_t sec, int32_t usec)
void safePrint(const byte_t *str, int32_t length)
void printBits(uint16_t value)
virtual ssize_t write(uint16_t number)=0
virtual ssize_t write(wchar_t character, int32_t sec, int32_t usec)
virtual ssize_t writeUcs2(const ucs2_t *string)=0
virtual ssize_t write(char character, int32_t sec, int32_t usec)
void safePrint(const char *str, int32_t length)
virtual ssize_t write(byte_t character, int32_t sec, int32_t usec)
void printHex(const byte_t *data, uint64_t size, uint16_t indent)
void printBits(int16_t value)
void printHex(const byte_t *data, uint64_t size)
virtual ssize_t write(int64_t number)=0
virtual ssize_t write(int64_t number, int32_t sec, int32_t usec)
void printBits(uint64_t value)
virtual ssize_t write(double number, int32_t sec, int32_t usec)
virtual ssize_t write(int32_t number, int32_t sec, int32_t usec)
virtual ssize_t write(uint64_t number, int32_t sec, int32_t usec)
virtual ssize_t write(int32_t number)=0
void safePrint(const char *str)
virtual ssize_t write(const wchar_t *string, size_t length, int32_t sec, int32_t usec)
virtual ssize_t write(double number)=0
virtual ssize_t write(uint32_t number, int32_t sec, int32_t usec)
virtual ssize_t write(const wchar_t *string)=0
virtual ssize_t write(const wchar_t *string, int32_t sec, int32_t usec)
void printBits(uint32_t value)
virtual ssize_t write(const byte_t *string, size_t size)=0
virtual ssize_t writeUcs2(ucs2_t character, int32_t sec, int32_t usec)
void printBits(const byte_t *bits, uint64_t size)
virtual ssize_t write(const char *string, size_t length)=0
virtual ssize_t write(uint16_t number, int32_t sec, int32_t usec)
virtual ssize_t write(char character)=0
void printBits(int32_t value)
void printBits(int64_t value)
virtual ssize_t writeUcs2(const ucs2_t *string, size_t length)=0
virtual ssize_t write(uint32_t number)=0
virtual ssize_t writeUcs2(ucs2_t character)=0
virtual ssize_t write(int16_t number)=0
virtual ssize_t write(float number)=0
virtual ssize_t write(int16_t number, int32_t sec, int32_t usec)
virtual ssize_t write(const byte_t *string, size_t size, int32_t sec, int32_t usec)
virtual ssize_t write(const char *string, size_t length, int32_t sec, int32_t usec)
virtual ssize_t write(const wchar_t *string, size_t length)=0
virtual ssize_t writeUcs2(const ucs2_t *string, size_t length, int32_t sec, int32_t usec)
virtual ssize_t write(uint64_t number)=0