Logo Search packages:      
Sourcecode: pwlib version File versions

PINDEX PChannel::GetLastWriteCount (  )  const [virtual, inherited]

Get the number of bytes written by the last Write() call.

Note that the number of bytes written may often be less, or even more, than that asked for. A common case of it being less is where the disk is full. An example of where the bytes written is more is as follows. On a PTextFile# channel on the MSDOS platform, there is translation of
to CR/LF pairs. This will result in the number of bytes returned being more than that requested.

Returns:
the number of bytes written.

Reimplemented in PSoundChannel.

Definition at line 335 of file pchannel.cxx.

References PChannel::lastWriteCount.

Referenced by PWAVFileFormat::Write().

{ 
  return lastWriteCount; 
}


Generated by  Doxygen 1.6.0   Back to index