Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FlexFile Reference Guide - <b>v_buffers()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 V_BUFFERS()
 Declare or retrieve the number of DBV file buffers
-------------------------------------------------------------------------------

 Syntax

    V_BUFFERS( [<nBuffers>] )    ->    nBuffers

 Arguments

    <nBuffers> is an integer value indicating a number of 1K buffers.
    The default (which is also the minimum value) is 3 buffers.

 Returns

    V_BUFFERS() returns an integer indicating the previous setting of
    the number of 1K buffers.

 Description

    FlexFile manages all file input and output through a set of 1K
    buffers. Because there is such a diversity in buffered I/O from
    machine to machine, FlexFile offers the ability to customize the
    amount of space used for this purpose.

    If you are running with a disk cache or are tight on memory, leave
    the buffers at their default (and minimum) value of 3. If you have
    the space and would like to increase performance, increase the
    number of buffers.

 Notes

  . The buffers may only be changed when no DBV files are in use.

 Examples

    // Set FlexFile's buffers to 5K
    V_BUFFERS(5)

    V_USE( "file" )       // Open a file.

    // This line has no effect because files are open.
    V_BUFFERS(10)

    ? V_BUFFERS()         // Result: 5

See Also: V_FILES() V_USE()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson