bytebuffer.h
// Copyright (c) 1999-2018 David Muse
// See the COPYING file for more information.
#ifndef RUDIMENTS_BYTEBUFFER_H
#define RUDIMENTS_BYTEBUFFER_H
#include <rudiments/private/bytebufferincludes.h>
class RUDIMENTS_DLLSPEC bytebuffer : public output {
public:
bytebuffer();
bytebuffer(size_t initialsize);
bytebuffer(unsigned char *initialcontents, size_t initialsize);
bytebuffer(const bytebuffer &v);
bytebuffer &operator=(const bytebuffer &v);
virtual ~bytebuffer();
void setPosition(size_t pos);
size_t getPosition();
ssize_t write(const unsigned char *data, size_t size);
ssize_t write(const char *string, size_t length);
ssize_t write(const char *string);
ssize_t write(const wchar_t *string, size_t length);
ssize_t write(const wchar_t *string);
ssize_t write(char character);
ssize_t write(wchar_t character);
ssize_t write(int16_t number);
ssize_t write(int32_t number);
ssize_t write(int64_t number);
ssize_t write(unsigned char character);
ssize_t write(uint16_t number);
ssize_t write(uint32_t number);
ssize_t write(uint64_t number);
ssize_t write(float number);
ssize_t write(double number);
ssize_t writeFormatted(const char *format, ...);
ssize_t writeFormatted(const char *format, va_list *argp);
ssize_t writeFormatted(const wchar_t *format, ...);
ssize_t writeFormatted(const wchar_t *format, va_list *argp);
bytebuffer *append(const unsigned char *data, size_t size);
bytebuffer *append(const char *string, size_t length);
bytebuffer *append(const char *string);
bytebuffer *append(const wchar_t *string, size_t length);
bytebuffer *append(const wchar_t *string);
bytebuffer *append(char character);
bytebuffer *append(wchar_t character);
bytebuffer *append(int16_t number);
bytebuffer *append(int32_t number);
bytebuffer *append(int64_t number);
bytebuffer *append(unsigned char character);
bytebuffer *append(uint16_t number);
bytebuffer *append(uint32_t number);
bytebuffer *append(uint64_t number);
bytebuffer *append(float number);
bytebuffer *append(double number);
bytebuffer *appendFormatted(const char *format, ...);
bytebuffer *appendFormatted(const char *format,
va_list *argp);
bytebuffer *appendFormatted(const wchar_t *format, ...);
bytebuffer *appendFormatted(const wchar_t *format,
va_list *argp);
virtual void truncate(size_t pos);
virtual void truncate();
ssize_t read(unsigned char *data, size_t size);
void clear();
void clear(size_t initialsize);
void clear(unsigned char *initialcontents,
size_t initialsize);
const unsigned char *getBuffer();
size_t getSize();
size_t getActualSize();
size_t getInitialSize();
unsigned char *detachBuffer();
#include <rudiments/private/bytebuffer.h>
};
#endif
bytebuffer
Definition: bytebuffer.h:13
bytebuffer::write
ssize_t write(uint16_t number)
bytebuffer::writeFormatted
ssize_t writeFormatted(const char *format, va_list *argp)
bytebuffer::write
ssize_t write(const wchar_t *string, size_t length)
bytebuffer::read
ssize_t read(unsigned char *data, size_t size)
bytebuffer::append
bytebuffer * append(const wchar_t *string, size_t length)
bytebuffer::append
bytebuffer * append(uint64_t number)
bytebuffer::append
bytebuffer * append(const char *string)
bytebuffer::~bytebuffer
virtual ~bytebuffer()
bytebuffer::append
bytebuffer * append(wchar_t character)
bytebuffer::detachBuffer
unsigned char * detachBuffer()
bytebuffer::write
ssize_t write(const char *string)
bytebuffer::append
bytebuffer * append(const char *string, size_t length)
bytebuffer::append
bytebuffer * append(const unsigned char *data, size_t size)
bytebuffer::append
bytebuffer * append(uint16_t number)
bytebuffer::append
bytebuffer * append(double number)
bytebuffer::setPosition
void setPosition(size_t pos)
bytebuffer::append
bytebuffer * append(int64_t number)
bytebuffer::clear
void clear(unsigned char *initialcontents, size_t initialsize)
bytebuffer::write
ssize_t write(int64_t number)
bytebuffer::clear
void clear()
bytebuffer::write
ssize_t write(int16_t number)
bytebuffer::append
bytebuffer * append(float number)
bytebuffer::append
bytebuffer * append(char character)
bytebuffer::write
ssize_t write(float number)
bytebuffer::write
ssize_t write(double number)
bytebuffer::append
bytebuffer * append(int32_t number)
bytebuffer::append
bytebuffer * append(int16_t number)
bytebuffer::truncate
virtual void truncate()
bytebuffer::appendFormatted
bytebuffer * appendFormatted(const char *format,...)
bytebuffer::bytebuffer
bytebuffer(unsigned char *initialcontents, size_t initialsize)
bytebuffer::write
ssize_t write(char character)
bytebuffer::append
bytebuffer * append(const wchar_t *string)
bytebuffer::writeFormatted
ssize_t writeFormatted(const wchar_t *format, va_list *argp)
bytebuffer::appendFormatted
bytebuffer * appendFormatted(const wchar_t *format,...)
bytebuffer::append
bytebuffer * append(uint32_t number)
bytebuffer::write
ssize_t write(const wchar_t *string)
bytebuffer::truncate
virtual void truncate(size_t pos)
bytebuffer::getInitialSize
size_t getInitialSize()
bytebuffer::bytebuffer
bytebuffer(size_t initialsize)
bytebuffer::appendFormatted
bytebuffer * appendFormatted(const wchar_t *format, va_list *argp)
bytebuffer::write
ssize_t write(const char *string, size_t length)
bytebuffer::write
ssize_t write(uint32_t number)
bytebuffer::write
ssize_t write(const unsigned char *data, size_t size)
bytebuffer::write
ssize_t write(uint64_t number)
bytebuffer::write
ssize_t write(int32_t number)
bytebuffer::write
ssize_t write(wchar_t character)
bytebuffer::writeFormatted
ssize_t writeFormatted(const wchar_t *format,...)
bytebuffer::bytebuffer
bytebuffer(const bytebuffer &v)
bytebuffer::bytebuffer
bytebuffer()
bytebuffer::append
bytebuffer * append(unsigned char character)
bytebuffer::getActualSize
size_t getActualSize()
bytebuffer::operator=
bytebuffer & operator=(const bytebuffer &v)
bytebuffer::getBuffer
const unsigned char * getBuffer()
bytebuffer::writeFormatted
ssize_t writeFormatted(const char *format,...)
bytebuffer::appendFormatted
bytebuffer * appendFormatted(const char *format, va_list *argp)
bytebuffer::clear
void clear(size_t initialsize)
bytebuffer::write
ssize_t write(unsigned char character)
bytebuffer::getSize
size_t getSize()
bytebuffer::getPosition
size_t getPosition()
character
Definition: character.h:11
output
Definition: output.h:9