object BitArrayTile extends Serializable
The companion object for the BitArrayTile type.
- Alphabetic
- By Inheritance
- BitArrayTile
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
def
empty(cols: Int, rows: Int): BitArrayTile
Produce an empty, new BitArrayTile.
Produce an empty, new BitArrayTile.
- cols
The number of columns
- rows
The number of rows
- returns
The new BitArrayTile
-
def
fill(v: Boolean, cols: Int, rows: Int): BitArrayTile
Produce a new BitArrayTile and fill it with the given value.
Produce a new BitArrayTile and fill it with the given value.
- v
The value to fill into the new tile
- cols
The number of columns
- rows
The number of rows
- returns
The new BitArrayTile
-
def
fill(v: Int, cols: Int, rows: Int): BitArrayTile
Produce a new BitArrayTile and fill it with the given value.
Produce a new BitArrayTile and fill it with the given value.
- v
The value to fill into the new tile
- cols
The number of columns
- rows
The number of rows
- returns
The new BitArrayTile
-
def
fromBytes(bytes: Array[Byte], cols: Int, rows: Int): BitArrayTile
Produce a new BitArrayTile from an array of bytes.
Produce a new BitArrayTile from an array of bytes.
- bytes
The value to fill into the new tile
- cols
The number of columns
- rows
The number of rows
- returns
The new BitArrayTile
-
def
ofDim(cols: Int, rows: Int): BitArrayTile
Produce a BitArrayTile of the specified dimensions.
Produce a BitArrayTile of the specified dimensions.
- cols
The number of columns
- rows
The number of rows
- returns
The new BitArrayTile
-
def
update(arr: Array[Byte], i: Int, z: Int): Unit
Set or unset the specified bit in the Array[Byte].
Set or unset the specified bit in the Array[Byte].
- arr
The array of bytes to be modified
- i
The index of the bit
- z
The value whose least significant bit will be put at the index
-
def
updateDouble(arr: Array[Byte], i: Int, z: Double): Unit
Set or unset the specified bit in the Array[Byte].
Set or unset the specified bit in the Array[Byte].
- arr
The array of bytes to be modified
- i
The index of the bit
- z
The value that will be used to update the array