Filter:Pascal Plain C C++ (DLL/Lib) C++ (VCL) C++ (.NET) C# VB.NET Java
Sets the length of the current stream.
void set_Length(__int64 value)
void SetLength(__int64 value)
void SetLength(long value)
Sub SetLength(ByVal value As Long)
void setLength(long value)
- Value - the desired length of the current stream in bytes.
Use this method to set the new length of current stream.
If the specified value is less than the current length of the stream, the stream is truncated. If the specified value is larger than the current length of the stream, the stream is expanded. If the stream is expanded, the contents of the stream between the old and the new length are not defined.
A stream must support both writing and seeking for SetLength to work.
Use CanWrite and CanSeek properties to determine whether writing and seeking are supported.