basis.memory

Data

object Data extends Allocator

An allocator for native-endian data backed by a primitive array.

Linear Supertypes
Allocator, (Long) ⇒ Data, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Data
  2. Allocator
  3. Function1
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def MaxSize: Long

    Returns the maximum allocation size supported by this allocator.

    Returns the maximum allocation size supported by this allocator.

    Definition Classes
    DataAllocator
  7. def alloc[T](count: Long)(implicit T: Struct[T]): Data

    Returns newly allocated memory for a certain number of struct values.

    Returns newly allocated memory for a certain number of struct values. Allocates sizeOf[T] * count bytes of data. Implementations may return a Data class optimized for the given struct.

    T

    the struct instance type.

    count

    the number of struct values to allocate.

    T

    the implicit struct.

    returns

    the allocated, zero-filled data.

    Definition Classes
    DataAllocator
  8. def andThen[A](g: (Data) ⇒ A): (Long) ⇒ A

    Definition Classes
    Function1
    Annotations
    @unspecialized()
  9. def apply(size: Long): Data

    Returns a certain number of bytes of newly allocated memory.

    Returns a certain number of bytes of newly allocated memory.

    size

    the number of bytes to allocate.

    returns

    the allocated, zero-filled data.

    Definition Classes
    DataAllocator → Function1
  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  12. def compose[A](g: (A) ⇒ Long): (A) ⇒ Data

    Definition Classes
    Function1
    Annotations
    @unspecialized()
  13. def copy(from: Data, fromAddress: Long, to: Data, toAddress: Long, size: Long): Unit

    Copies a byte sequence from one Data object to another.

    Copies a byte sequence from one Data object to another.

    from

    the source data.

    fromAddress

    the source address.

    to

    the destination data.

    toAddress

    the destination address.

    size

    the number of bytes to copy.

  14. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  17. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  18. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  24. def toString(): String

    Definition Classes
    Data → Function1 → AnyRef → Any
  25. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  26. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  27. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from Allocator

Inherited from (Long) ⇒ Data

Inherited from AnyRef

Inherited from Any

Ungrouped