ByteBits

class ByteBits(byte: Byte) : List<Boolean> (source)

Constructors

Link copied to clipboard
constructor(byte: Byte)

Properties

Link copied to clipboard
open override val size: Int

Functions

Link copied to clipboard
open operator override fun contains(element: Boolean): Boolean
Link copied to clipboard
open override fun containsAll(elements: Collection<Boolean>): Boolean
Link copied to clipboard
open operator override fun get(index: Int): Boolean
Link copied to clipboard
fun List<Byte>.getByte(index: Int): Byte

Get specific byte from a byte array at a given position

Link copied to clipboard
fun List<Byte>.getBytes(index: Int, length: Int): ByteArray

Get a byte array from a byte array

Link copied to clipboard
fun List<Byte>.getDouble(index: Int): Double

Get specific double from a byte array at a given position

Link copied to clipboard
fun List<Byte>.getFloat(index: Int): Float

Get specific float from a byte array at a given position

Link copied to clipboard
fun List<Byte>.getInt(index: Int): Int

Get specific int from a byte array at a given position

Link copied to clipboard
fun List<Byte>.getLong(index: Int): Long

Get specific long from a byte array at a given position

Link copied to clipboard
fun List<Byte>.getShort(index: Int): Short

Get specific short from a byte array at a given position

Link copied to clipboard

Get specific unsigned byte from a byte array at a given position

Link copied to clipboard

Get specific unsigned int from a byte array at a given position

Link copied to clipboard

Get specific unsigned long from a byte array at a given position

Link copied to clipboard

Get specific unsigned short from a byte array at a given position

Link copied to clipboard
open override fun indexOf(element: Boolean): Int
Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
open operator override fun iterator(): Iterator<Boolean>
Link copied to clipboard
open override fun lastIndexOf(element: Boolean): Int
Link copied to clipboard
open override fun listIterator(): ListIterator<Boolean>
open override fun listIterator(index: Int): ListIterator<Boolean>
Link copied to clipboard
open override fun subList(fromIndex: Int, toIndex: Int): List<Boolean>
Link copied to clipboard

Convert a byte array to a byte.

Link copied to clipboard

Convert a byte array to a double.

Link copied to clipboard

Convert a byte array to a float.

Link copied to clipboard

Get a byte array from a byte array

Link copied to clipboard
fun List<Byte>.toInt(): Int

Convert a byte array to int.

Link copied to clipboard
Link copied to clipboard

Convert a byte array to long.

Link copied to clipboard

Convert a byte array to short.

Link copied to clipboard

Convert a byte array to an unsigned char

Link copied to clipboard

Convert a byte array to an unsigned int

Link copied to clipboard

Convert a byte array to an unsigned long

Link copied to clipboard

Convert a byte array to an unsigned short

Link copied to clipboard

Get a byte array from a byte array