basis.memory

Struct

abstract class Struct[T] extends ClassTypeHint[T]

A typeclass for binary data structures.

A struct's alignment, offset and size constitute its frame; the alignment must evenly divide the offset and size. Structs must never access more than size - 1 bytes beyond a given address, and should assume proper alignment of provided addresses.

T

This struct's instance type.

Annotations
@implicitNotFound( ... )
Linear Supertypes
ClassTypeHint[T], TypeHint[T], Equals, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Struct
  2. ClassTypeHint
  3. TypeHint
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Struct()

Abstract Value Members

  1. abstract def alignment: Long

    Returns the power-of-two alignment of this struct's frame.

    Returns the power-of-two alignment of this struct's frame. This alignment must evenly divide all storage addresses used for values of this type.

  2. abstract def load(data: Data, address: Long): T

    Loads a struct instance from data.

    Loads a struct instance from data.

    data

    the data to load from.

    address

    the aligned address in data to load from.

    returns

    the loaded instance.

  3. abstract def runtimeClass: Class[_]

    Definition Classes
    ClassTypeHint
  4. abstract def size: Long

    Returns the size in bytes of this struct's frame.

    Returns the size in bytes of this struct's frame. The struct's alignment must evenly divide this size.

  5. abstract def store(data: Data, address: Long, value: T): Unit

    Stores a struct instance as data.

    Stores a struct instance as data.

    data

    the data to store to.

    address

    the aligned address in data to store to.

    value

    the instance to store.

Concrete 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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def canEqual(other: Any): Boolean

    Definition Classes
    ClassTypeHint → Equals
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  9. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. def equals(other: Any): Boolean

    Definition Classes
    ClassTypeHint → Equals → AnyRef → Any
  11. def finalize(): Unit

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

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

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

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

    Definition Classes
    AnyRef
  16. def newArray(length: Int): Array[T]

    Definition Classes
    ClassTypeHint
  17. final def notify(): Unit

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

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

    Definition Classes
    AnyRef
  20. def toString(): String

    Definition Classes
    ClassTypeHint → AnyRef → Any
  21. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from ClassTypeHint[T]

Inherited from TypeHint[T]

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped