Bencode
in package
FinalYes
Provides a Bencode serialiser.
Table of Contents
Constants
- DEFAULT_DEPTH = 512
Methods
Constants
DEFAULT_DEPTH
public
mixed
DEFAULT_DEPTH
= 512
Methods
decode()
public
static decode(mixed $input[, int $depth = self::DEFAULT_DEPTH ][, bool $dictAsObject = false ]) : mixed
Parameters
- $input : mixed
- $depth : int = self::DEFAULT_DEPTH
- $dictAsObject : bool = false
encode()
public
static encode(mixed $input[, int $depth = self::DEFAULT_DEPTH ]) : string
Parameters
- $input : mixed
- $depth : int = self::DEFAULT_DEPTH