class Util (View source)

Methods

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

Reads data.

static string
swap(string $binValue)

Changes endianity.

static string
packDouble(float $value)

Encodes double value to correct endianity.

static string
nameShape(int $type)

Returns shape name.

Details

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

Reads data.

Parameters

string $type type for unpack()
string|false $data Data to process

Return Value

mixed|false

static string swap(string $binValue)

Changes endianity.

Parameters

string $binValue Binary value

Return Value

string

static string packDouble(float $value)

Encodes double value to correct endianity.

Parameters

float $value Value to pack

Return Value

string

static string nameShape(int $type)

Returns shape name.

Parameters

int $type

Return Value

string