class Util

Methods

static mixed
loadData(string $type, string $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

at line 55
static mixed loadData(string $type, string $data)

Reads data.

Parameters

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

Return Value

mixed

at line 72
static string swap(string $binValue)

Changes endianity.

Parameters

string $binValue Binary value

Return Value

string

at line 89
static string packDouble(float $value)

Encodes double value to correct endianity.

Parameters

float $value Value to pack

Return Value

string

at line 111
static string nameShape(int $type)

Returns shape name.

Parameters

int $type

Return Value

string