MFMv2.0.10
Movable Feast Machine Simulator 2.0.10
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions
MFM::DiscardBytes Class Reference
Inheritance diagram for MFM::DiscardBytes:
MFM::ByteSink

Public Member Functions

virtual void WriteBytes (const u8 *data, const u32 len)
 
virtual s32 CanWrite ()
 
- Public Member Functions inherited from MFM::ByteSink
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)
 

Member Function Documentation

virtual s32 MFM::DiscardBytes::CanWrite ( )
inlinevirtual

Return the number of bytes that can currently be written by WriteBytes without blocking, or return a negative value if the ByteSink has encountered an error.

XXX DOCUMENT ERROR VALUES

Implements MFM::ByteSink.

virtual void MFM::DiscardBytes::WriteBytes ( const u8 *  data,
const u32  len 
)
inlinevirtual

Write the len consecutive bytes starting at data to the ByteSink, blocking if and as long as necessary to do so. It is not an error for len to be zero and WriteBytes will never block if it is.

Fails:
OUT_OF_ROOM if there is permanently not enough room to perform the requested output
Fails:
IO_ERROR if some other unrecoverable output error occurs.
See Also
CanWrite

Implements MFM::ByteSink.


The documentation for this class was generated from the following file: