MemoryViewByteArray

class MemoryViewByteArray(val data: ByteArray) : MemoryView<Byte>

View for ByteArray.

Constructors

Link copied to clipboard
fun MemoryViewByteArray(data: ByteArray)

Functions

Link copied to clipboard
open override fun copyInto(    destination: MemoryView<Byte>,     destinationOffset: Int,     startIndex: Int,     endIndex: Int): MemoryView<Byte>
Link copied to clipboard
open override fun copyOf(): MemoryView<Byte>

Returns a new instance with a copied primitive array.

Link copied to clipboard
open operator override fun divAssign(other: Byte)
operator fun divAssign(other: MemoryViewByteArray)
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open operator override fun get(index: Int): Byte

Returns the value at index.

Link copied to clipboard
open override fun getByteArray(): ByteArray

Returns ByteArray if it is MemoryViewByteArray.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open operator override fun iterator(): Iterator<Byte>

data iterator

Link copied to clipboard
open operator override fun minusAssign(other: Byte)
operator fun minusAssign(other: MemoryViewByteArray)
Link copied to clipboard
open operator override fun plusAssign(other: Byte)
operator fun plusAssign(other: MemoryViewByteArray)
Link copied to clipboard
open operator override fun set(index: Int, value: Byte)

Replaces the element at the given index with the specified value.

Link copied to clipboard
open operator override fun timesAssign(other: Byte)
operator fun timesAssign(other: MemoryViewByteArray)

Properties

Link copied to clipboard
open override val data: ByteArray

one of the primitive arrays.

Link copied to clipboard
open override val dtype: DataType

type of elements in array

Link copied to clipboard
open override var indices: IntRange

indices of data.

Link copied to clipboard
open override var lastIndex: Int

last index in data.

Link copied to clipboard
open override var size: Int