SolFSStorage.Buffering property


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

SolFSStorage     See also    


Specifies the number of pages being cached for one stream.


    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)

    unsigned int Buffering

    Property Buffering As Integer

    long getBuffering()
    void setBuffering(long value)


  • [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.


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