Learn R Programming

ff (version 4.5.0)

getpagesize: Get page size information

Description

The function is used for obtaining the natural OS-specific page size in Bytes. getpagesize returns the OS-specific page size in Bytes for memory mapped files, while getdefaultpagesize returns a suggested page size. getalignedpagesize returns the pagesize as a multiple of the OS-specific page size in Bytes, which is the correct way to specify pagesize in ff.

Usage

getpagesize()
  getdefaultpagesize()
  getalignedpagesize(pagesize)

Value

An integer giving the page size in Bytes.

Arguments

pagesize

a desired pagesize in bytes

Author

Daniel Adler, Jens Oehlschlägel

Examples

Run this code
  getpagesize()
  getdefaultpagesize()
  getalignedpagesize(2000000)
  

Run the code above in your browser using DataLab