com.github.arturopala.bufferandslice
Members list
Type members
Classlikes
Growable, mutable array of values.
Growable, mutable array of values.
Attributes
- T
type of the underlying array items
- Companion:
- object
- Graph
- Supertypes
Attributes
- Companion:
- class
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- ArrayBuffer.type
Common buffer functions impl for array-backend buffers.
Common buffer functions impl for array-backend buffers.
Attributes
- Graph
- Supertypes
- Known subtypes
Array modifications helper.
Array modifications helper.
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- ArrayOps.type
Lazy, immutable slice of an underlying array.
Lazy, immutable slice of an underlying array.
Attributes
- T
type of the array's items
- Note:
Truly immutable only if an underlying array kept private or if detached.
- Companion:
- object
- Graph
- Supertypes
Attributes
- Companion:
- class
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- ArraySlice.type
Common functions of an array-backed Slice.
Common functions of an array-backed Slice.
Attributes
- T
type of the array's items
- Note:
Truly immutable only if an underlying array kept private, or if detached.
- Graph
- Supertypes
- Known subtypes
Mutable indexed buffer abstraction. All modifications happens in-place.
Mutable indexed buffer abstraction. All modifications happens in-place.
In addition, the Buffer API offers both Stack- and List-like interfaces. For the purpose of the List-like processing, the head is a top element in the buffer.
Attributes
- Companion:
- object
- Graph
- Supertypes
- trait Int => Tclass Objecttrait Matchableclass Any
- Known subtypes
- trait ArrayBufferLike[T]class ArrayBuffer[T]class ByteBufferclass DeferredArrayBuffer[T]class IntBuffer
Growable, mutable array of bytes.
ByteBuffer factory.
ByteBuffer factory.
Attributes
- Companion:
- class
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- ByteBuffer.type
Lazy, specialized slice of the array of bytes.
Lazy, specialized slice of the array of bytes.
Attributes
- Note:
Truly immutable only if an underlying array kept private, or if detached.
- Companion:
- object
- Graph
- Supertypes
Growable, mutable array of values with deferred initialization.
Growable, mutable array of values with deferred initialization.
Attributes
- T
type of the underlying array items
- initialLength
initial length of the buffer
- Note:
This is to avoid ClassTag parameters as much as possible, but comes with a price of a few rough corners. Especially, if your type parameter is non-primitive do not try to call asArray and assign result to variable, as it will raise ClassCastException, instead pass the array as a parameter or call methods on it.
- Companion:
- object
- Graph
- Supertypes
Attributes
- Companion:
- class
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- DeferredArrayBuffer.type
Set of functions to update buffers or sequences of indexes values in order to match corresponding buffer operations. Useful to track values and structures movement during buffer modifications.
Set of functions to update buffers or sequences of indexes values in order to match corresponding buffer operations. Useful to track values and structures movement during buffer modifications.
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- IndexTracker.type
Growable, mutable array of integers.
Lazy, specialized slice of the array of integers.
Lazy, specialized slice of the array of integers.
Attributes
- Note:
Truly immutable only if an underlying array kept private, or if detached.
- Companion:
- object
- Graph
- Supertypes
Attributes
- Companion:
- class
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- LazyMapArraySlice.type
Attributes
- Companion:
- class
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- RangeMapSlice.type
Lazy and immutable slice of a sequence of values.
Lazy and immutable slice of a sequence of values.
Attributes
- T
type of the items of the sequence.
- Note:
As the slice usually wraps over a mutable structure, like an array or a java buffer, and it DOES NOT make an instant copy, any changes to the underlying source will directly affect the slice output unless detached. Detach is a one-time copy operation, and
detached
property is preserved across all operations returning a Slice.- Companion:
- object
- Graph
- Supertypes
- trait Int => Tclass Objecttrait Matchableclass Any
- Known subtypes
- trait ArraySliceLike[T]class ArraySlice[T]class ByteSliceclass IntSliceclass LazyMapArraySlice[T]class RangeMapSlice[T]