Documentation

Budget
in package

Pdf extract filter decode budget class

Tags
category

Pop

author

Nick Sagona, III nick@popphp.org

copyright

Copyright (c) 2009-2026 Nick Sagona, III

license

https://www.popphp.org/license New BSD License

version
6.0.0

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
Tags
throws
Exception

        
On this page

Search results