Documentation

ByteMatrix
in package

Byte matrix.

Table of Contents

$bytes  : SplFixedArray<string|int, SplFixedArray<string|int, int>>
Bytes in the matrix, represented as array.
$height  : int
Height of the matrix.
$width  : int
Width of the matrix.
__clone()  : mixed
__construct()  : mixed
__toString()  : string
Returns a string representation of the matrix.
clear()  : void
Clears the matrix with a specific value.
get()  : int
Gets the byte for a specific position.
getArray()  : SplFixedArray<string|int, SplFixedArray<string|int, int>>
Gets the internal representation of the matrix.
getBytes()  : Traversable<string|int, int>
getHeight()  : int
Gets the height of the matrix.
getWidth()  : int
Gets the width of the matrix.
set()  : void
Sets the byte for a specific position.

Properties

$bytes

Bytes in the matrix, represented as array.

private SplFixedArray<string|int, SplFixedArray<string|int, int>> $bytes

$height

Height of the matrix.

private int $height

Methods

__clone()

public __clone() : mixed
Return values
mixed

__construct()

public __construct(int $width, int $height) : mixed
Parameters
$width : int
$height : int
Return values
mixed

__toString()

Returns a string representation of the matrix.

public __toString() : string
Return values
string

clear()

Clears the matrix with a specific value.

public clear(int $value) : void
Parameters
$value : int
Return values
void

get()

Gets the byte for a specific position.

public get(int $x, int $y) : int
Parameters
$x : int
$y : int
Return values
int

getArray()

Gets the internal representation of the matrix.

public getArray() : SplFixedArray<string|int, SplFixedArray<string|int, int>>
Return values
SplFixedArray<string|int, SplFixedArray<string|int, int>>

getBytes()

public getBytes() : Traversable<string|int, int>
Return values
Traversable<string|int, int>

getHeight()

Gets the height of the matrix.

public getHeight() : int
Return values
int

getWidth()

Gets the width of the matrix.

public getWidth() : int
Return values
int

set()

Sets the byte for a specific position.

public set(int $x, int $y, int $value) : void
Parameters
$x : int
$y : int
$value : int
Return values
void

Search results