class Util (View source)

Methods

static mixed
loadData(string $type, string|false $data)

Reads data.

static string
packDouble(float $value)

Encodes double value to correct endianity.

Details

static mixed loadData(string $type, string|false $data)

Reads data.

Parameters

string $type

type for unpack()

string|false $data

Data to process

Return Value

mixed

static string packDouble(float $value)

Encodes double value to correct endianity.

Parameters

float $value

Return Value

string