Index Documentation

Bencode
in package

FinalYes

Provides a Bencode serialiser.

Table of Contents

Constants

DEFAULT_DEPTH  = 512

Methods

decode()  : mixed
encode()  : string

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
Return values
string

        
On this page

Search results