Logo Search packages:      
Sourcecode: pwlib version File versions

BOOL PMemoryFile::SetLength ( off_t  len  )  [virtual]

Set the size of the file, padding with 0 bytes if it would require expanding the file, or truncating it if being made shorter.

Returns:
TRUE if the file size was changed to the length specified.
Parameters:
len  New length of file.

Reimplemented from PFile.

Definition at line 108 of file memfile.cxx.

{
  return data.SetSize(len);
}


Generated by  Doxygen 1.6.0   Back to index