Solid File System

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

SolFSStorage.Buffering property

Filter:

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

SolFSStorage     See also    

Overview

Specifies the number of pages being cached for one stream.

Declaration

[Pascal]
    property Buffering: LongWord;

[Plain C]
    long _stdcall StorageSetBuffering(unsigned long Storage, unsigned long PagesPerCluster);
    long _stdcall StorageGetBuffering(unsigned long Storage, unsigned long *PagesPerCluster);

[C++ (DLL/Lib)]
    unsigned long get_Buffering()
    void set_Buffering(unsigned long)

[C++ (VCL)]
    __property LongWord Buffering;

[C++ (.NET)]
    LongWord get_Buffering()
    void set_Buffering(LongWord)

[C#]
    unsigned int Buffering

[VB.NET]
    Property Buffering As Integer

[Java]
    long getBuffering()
    void setBuffering(long value)

Parameters

  • [Plain C] Storage - handle to the storage returned by Create or Open function.
  • [Plain C] PagesPerCluster - the value of the property

[Plain C]  Return values

0 if the function succeeded or one of Error codes if the function failed.

Description

Use this property to control, how many pages will be kept in memory without reading from or writing to storage, for the single stream. When the stream is not compressed, the value is by default 1 and you can change the value. When the stream is compressed, the value set by SetFileCompression method in PagesPerCluster parameter is used. Use Flush to write all pages to storage immediately.

See also

Flush

Back to top