Ejemplo n.º 1
0
int32 FileOutputStream::write(int32 byte)
{
    char tempBuffer[1];
    tempBuffer[0] = (char)(byte & 0x000000ff);

    return (int32)internalWrite(tempBuffer, 1);
}
Ejemplo n.º 2
0
void WriteThread::run()
{
        connect(this,SIGNAL(internalStartOpen()),               this,SLOT(internalOpen()),              Qt::QueuedConnection);
        connect(this,SIGNAL(internalStartReopen()),             this,SLOT(internalReopen()),            Qt::QueuedConnection);
        connect(this,SIGNAL(internalStartWrite()),              this,SLOT(internalWrite()),             Qt::QueuedConnection);
        connect(this,SIGNAL(internalStartClose()),              this,SLOT(internalClose()),             Qt::QueuedConnection);
	connect(this,SIGNAL(internalStartEndOfFile()),		this,SLOT(internalEndOfFile()),		Qt::QueuedConnection);
	connect(this,SIGNAL(internalStartFlushAndSeekToZero()), this,SLOT(internalFlushAndSeekToZero()),Qt::QueuedConnection);
	connect(this,SIGNAL(internalStartChecksum()),		this,SLOT(checkSum()),			Qt::QueuedConnection);
	exec();
}
Ejemplo n.º 3
0
int64 FileOutputStream::write(const void* buffer, uint32 maxlen)
{
    return internalWrite(buffer, maxlen);
}