Jamm\Memory\Shm\ShmMem::__construct PHP Method

__construct() public method

public __construct ( string $ID = '', integer $size, integer $maxsize )
$ID string by default is __FILE__
$size integer initial size
$maxsize integer maximum allowed size
    public function __construct($ID = '', $size = 0, $maxsize = 0)
    {
        if (!empty($size)) {
            $this->shmsize = $size;
        }
        if (!empty($maxsize) && $maxsize > $this->shmsize) {
            $this->max_size = $maxsize;
        }
        $this->set_ID($ID);
    }