[Overview][Constants][Types][Classes][Procedures and functions][Variables] |
Flush buffer, and truncate the file at current position.
Source position: objects.pp line 348
procedure TBufStream.Truncate; virtual; |
If the status of the stream is stOK, then Truncatetries to flush the buffer, and then truncates the stream size to the current file position.
For an example, see TDosStream.Truncate.
Errors can be those of Flushor TDosStream.Truncate.
|
Truncate the stream size on current position. |
|
|
Truncate the file on the current position. |
|
|
Return the size of the stream. |