Solid File System

Virtual file system enigne that can be embedded into your software.

SolFSStream.setLength method


Pascal    Plain C    C++ (DLL/Lib)    C++ (VCL)    C++ (.NET)    C#    VB.NET    Java 

SolFSStream     See also    


Sets the length of the current stream.


    not applicable;

[Plain C]
    not applicable;

[C++ (DLL/Lib)]
    void set_Length(__int64 value)

[C++ (VCL)]
    not applicable;

[C++ (.NET)]
    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.

See also

CanWrite     CanSeek     Length

Back to top