Bånder

FileInfo extends Data
in package

Table of Contents

Properties

$avgLineLength  : float
$lines  : int
$optimalThreads  : int
$path  : string
$size  : int
$sizeMb  : float

Methods

__construct()  : mixed
create()  : mixed
isLargeFile()  : bool
shouldUseThreading()  : bool

Properties

$avgLineLength read-only

public float $avgLineLength

$optimalThreads read-only

public int $optimalThreads

Methods

__construct()

public __construct(int $size, float $sizeMb, int $lines, float $avgLineLength, int $optimalThreads, string $path) : mixed
Parameters
$size : int
$sizeMb : float
$lines : int
$avgLineLength : float
$optimalThreads : int
$path : string

create()

public static create(string $path, int $size, int $lines, int $optimalThreads) : mixed
Parameters
$path : string
$size : int
$lines : int
$optimalThreads : int

isLargeFile()

public isLargeFile() : bool
Return values
bool

shouldUseThreading()

public shouldUseThreading() : bool
Return values
bool

        
On this page

Search results