Solid File System

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

SolFSStream.setLength method

Filter:

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

SolFSStream     See also    

Overview

Sets the length of the current stream.

Declaration

[Pascal]
    not applicable;

[Plain C]
    not applicable;

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

[C++ (VCL)]
    not applicable;

[C++ (.NET)]
    void SetLength(__int64 value)

[C#]
    void SetLength(long value)

[VB.NET]
    Sub SetLength(ByVal value As Long)

[Java]
    void setLength(long value)

Parameters

  • Value - the desired length of the current stream in bytes.

Description

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