Budget
in package
Pdf extract filter decode budget class
Tags
Table of Contents
Properties
- $remaining : int
- Remaining bytes available before the budget is exhausted
Methods
- __construct() : mixed
- Constructor
- charge() : void
- Charge a number of bytes against the remaining budget
Properties
$remaining
Remaining bytes available before the budget is exhausted
protected
int
$remaining
Methods
__construct()
Constructor
public
__construct(int $totalBytes) : mixed
Instantiate a decode budget with a total byte allowance.
Parameters
- $totalBytes : int
charge()
Charge a number of bytes against the remaining budget
public
charge(int $bytes) : void
Parameters
- $bytes : int