MFMv2.0.10
Movable Feast Machine Simulator 2.0.10
|
#include <TeeByteSink.h>
Public Member Functions | |
TeeByteSink () | |
TeeByteSink (ByteSink &sink1, ByteSink &sink2) | |
ByteSink * | GetSink1 () const |
ByteSink * | GetSink2 () const |
ByteSink * | SetSink1 (ByteSink *sink) |
ByteSink * | SetSink2 (ByteSink *sink) |
virtual void | WriteBytes (const u8 *data, const u32 len) |
virtual s32 | CanWrite () |
![]() | |
virtual void | WriteByte (u8 ch) |
virtual void | WriteNewline () |
void | Print (const char *str, s32 fieldWidth=-1, u8 padChar= ' ') |
void | Print (const u8 *str, u32 len, s32 fieldWidth=-1, u8 padChar= ' ') |
void | Print (s32 decimal, s32 fieldWidth=-1, u8 padChar= ' ') |
void | Print (u32 decimal, s32 fieldWidth=-1, u8 padChar= ' ') |
void | Print (s64 decimal, s32 fieldWidth=-1, u8 padChar= ' ') |
void | Print (u64 decimal, s32 fieldWidth=-1, u8 padChar= ' ') |
void | Print (u32 num, Format::Type code, s32 fieldWidth=-1, u8 padChar= ' ') |
void | Print (s32 num, Format::Type code, s32 fieldWidth=-1, u8 padChar= ' ') |
void | Print (u64 num, Format::Type code, s32 fieldWidth=-1, u8 padChar= ' ') |
void | Print (s64 num, Format::Type code, s32 fieldWidth=-1, u8 padChar= ' ') |
void | Print (ByteSerializable &byteSerializble, s32 argument=0) |
void | Println () |
void | Println (u8 byte) |
void | Println (const char *str) |
void | Println (const u8 *str, u32 len) |
void | Println (s32 decimal) |
void | Println (u32 decimal) |
void | Println (u32 decimal, Format::Type code) |
void | Println (ByteSerializable &byteSerializable, s32 argument=0) |
void | Printf (const char *format,...) |
void | Vprintf (const char *format, va_list &ap) |
A ByteSink that wraps two other ByteSinks, routing all bytes sent to it on to both underlying ByteSinks.
|
inline |
Creates a new TeeByteSink which contains two NULL pointers as its underlying ByteSinks. These need to be set before this ByteSink can become useful.
Creates a new TeeByteSink which points to the specifiend ByteSinks. Either or both of these ByteSinks may be NULL, which will not be written to.
sink1 | The first ByteSink that this TeeByteSink will initially begin writing to. |
sink1 | The second ByteSink that this TeeByteSink will initially begin writing to. |
|
inlinevirtual |
Gets the maximum number of bytes which may be written to both of the ByteSinks held by this TeeByteSink.
Implements MFM::ByteSink.
|
inline |
Gets a pointer to the first ByteSink that this TeeByteSink is currently configured to write to.
|
inline |
Gets a pointer to the second ByteSink that this TeeByteSink is currently configured to write to.
Sets the first ByteSink that this TeeByteSink will be configured to write to.
sink | The first ByteSink that this TeeByteSink will be configured to write to after calling this method. |
Sets the second ByteSink that this TeeByteSink will be configured to write to.
sink | The second ByteSink that this TeeByteSink will be configured to write to after calling this method. |
|
inlinevirtual |
Writes a series of bytes to the ByteSinks held by this TeeByteSink. If either of these held ByteSinks happen to be NULL, writing to that ByteSink is ignored.
data | A pointer to the bytes that will be written to the held ByteSinks. |
len | The number of bytes which will be written to the held ByteSinks. |
Implements MFM::ByteSink.