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
intfromString()
    public
            static        fromString(string $string[, ByteOrder $byteOrder = ByteOrder::LITTLE_ENDIAN ]) : self
    Parameters
- $string : string
- $byteOrder : ByteOrder = ByteOrder::LITTLE_ENDIAN
Return values
selfgetIterator()
    public
                    getIterator() : ArrayIterator
    Return values
ArrayIteratoroffsetExists()
    public
                    offsetExists(mixed $offset) : bool
    Parameters
- $offset : mixed
Return values
booloffsetGet()
    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
size()
    public
                    size() : DataSize
    Return values
DataSizetoArray()
    public
                    toArray() : array<string|int, int>
    Return values
array<string|int, int>toInt()
Convert bytes to a single integer.
    public
                    toInt() : int
    Return values
inttoString()
    public
                    toString() : string