SpectMorph
Public Member Functions | List of all members
SpectMorph::MemOut Class Reference
Inheritance diagram for SpectMorph::MemOut:
SpectMorph::GenericOut

Public Member Functions

 MemOut (std::vector< unsigned char > *output)
 
int put_byte (int c)
 
int write (const void *ptr, size_t size)
 

Member Function Documentation

◆ put_byte()

int MemOut::put_byte ( int  c)
virtual

Write one character into the output stream.

Parameters
ccharacter to be written
Returns
the character written, or EOF on error.

Implements SpectMorph::GenericOut.

◆ write()

int MemOut::write ( const void *  ptr,
size_t  size 
)
virtual

Write a block of data into the stream.

Parameters
ptrpointer to the data to be written
sizenumber of bytes to be written
Returns
the number of bytes successfully written (can be 0)

Implements SpectMorph::GenericOut.


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