Flow PHP

Bytes implements ArrayAccess, Countable, IteratorAggregate

FinalYes

Interfaces

ArrayAccess
Countable
IteratorAggregate

Methods

__construct()  : mixed
count()  : int
fromString()  : self
getIterator()  : ArrayIterator
offsetExists()  : bool
offsetGet()  : mixed
offsetSet()  : void
offsetUnset()  : void
size()  : DataSize
toArray()  : array<string|int, int>
toInt()  : int
Convert bytes to a single integer.
toString()  : string

Methods

__construct()

public __construct(array<string|int, mixed> $bytes[, ByteOrder $byteOrder = ByteOrder::LITTLE_ENDIAN ]) : mixed
Parameters
$bytes : array<string|int, mixed>
$byteOrder : ByteOrder = ByteOrder::LITTLE_ENDIAN

count()

public count() : int
Return values
int

fromString()

public static fromString(string $string[, ByteOrder $byteOrder = ByteOrder::LITTLE_ENDIAN ]) : self
Parameters
$string : string
$byteOrder : ByteOrder = ByteOrder::LITTLE_ENDIAN
Return values
self

getIterator()

public getIterator() : ArrayIterator
Return values
ArrayIterator

offsetExists()

public offsetExists(mixed $offset) : bool
Parameters
$offset : mixed
Return values
bool

offsetGet()

public offsetGet(mixed $offset) : mixed
Parameters
$offset : mixed

offsetSet()

public offsetSet(mixed $offset, mixed $value) : void
Parameters
$offset : mixed
$value : mixed

offsetUnset()

public offsetUnset(mixed $offset) : void
Parameters
$offset : mixed

toArray()

public toArray() : array<string|int, int>
Return values
array<string|int, int>

toInt()

Convert bytes to a single integer.

public toInt() : int
Return values
int

toString()

public toString() : string
Return values
string

        
On this page

Search results