Create a new array that concatenates two arrays
Create a new array that concatenates two arrays
Copy of thie array with an element prepended.
Copy of thie array with an element prepended.
the prepended element.
a new array consisting ofall elements of this array preceded by the new elem.
fold left
fold left
the result type of the binary operator
the start value
the binary operator
the result of inserting op between consecutive elements of this array, going left to right with the start value z on the left:
op(...op(op(z, x1), x2), ..., xn)))
Copy of this array with an element appended.
Copy of this array with an element appended.
the appended element
a new array consisting of all elements of this array follwed by the new elem
fold right
fold right
the result type of the binary operator
the start value
the binary operator
the result of inserting op between consecutive elements of this array, going right to left with the start value z on the right:
op(x1, op(x2, ..., op(xn, z)...))
Raw-memory address of this array
Raw-memory address of this array
Retrieve an element at the given index.
Retrieve an element at the given index. LArray does not perform boundary checks for optimizing the performance, so reading the indexes out of bounds might cause JVM crash.
index
the element value
Byte length of this array.
Byte length of this array.
Clear the contents of the array.
Clear the contents of the array. It simply fills the array with zero bytes.
Builds a new collection by applying a partial function to all elments of this array on which the function is defined.
Builds a new collection by applying a partial function to all elments of this array on which the function is defined.
Finds the first element of this array on which the given partial function is defined, and applies the partial function to it.
Finds the first element of this array on which the given partial function is defined, and applies the partial function to it.
return type
partial function
an option value containing pf applied to the first value for which the function is defined, or None if not exists.
Create a new array that concatenates two arrays
Create a new array that concatenates two arrays
Copy the contents of this sequence into the target LByteArray
Copy the contents of this sequence into the target LByteArray
the byte length to copy
Copy the contents of this LSeq[A] into the target LByteArray
Copy the contents of this LSeq[A] into the target LByteArray
Release the memory of LArray.
Release the memory of LArray. After calling this method, the results of calling the other methods becomes undefined or might cause JVM crash.
Tests whether this sequence is empty
Tests whether this sequence is empty
Creates a new iterator over all elements contained in this collection
Creates a new iterator over all elements contained in this collection
Provides the Iterable interface for Java
Provides the Iterable interface for Java
Release the memory of LArray.
Release the memory of LArray. After calling this mehtod, thr results of calling the other methods becomes undefined or might cause JVM crash.
Save to a file.
Save to a file.
array size
array size
Groups elemnts in fixed size blocks by passing a 'sliding window' over them.
Groups elemnts in fixed size blocks by passing a 'sliding window' over them.
the number of elements per group
the distance between the first elements of successive groups
An itertor producing group of elements.
Groups elements in fixed size blocks by passing a 'sliding window' over them
Groups elements in fixed size blocks by passing a 'sliding window' over them
the number of elements per group
An iterator producing group of elements.
Creates a copy of this array in the form of the standard Scala Array
Creates a copy of this array in the form of the standard Scala Array
Create a sequence of DirectByteBuffer that projects LArray contents
Create a sequence of DirectByteBuffer that projects LArray contents
sequence of java.nio.ByteBuffer
Wraps with immutable interface
Wraps with immutable interface
Update an element
Update an element
index to be updated
value to set
the value
Create a shallow copy (view) of LArray
Create a shallow copy (view) of LArray
Write the contents of ByteBuffer to this array.
Write the contents of ByteBuffer to this array. This method increments the internal cursor.
LArray[A] of Objects. This implementation is a simple wrapper of Array[A] and used when the array size is less than 2G
object type