basis.data

Loader

trait Loader extends Equals with Family[Loader] with ByteOrder[Endianness]

Source
Loader.scala
Linear Supertypes
Known Subclasses
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Grouped
  2. Alphabetic
  3. By inheritance
Inherited
  1. Loader
  2. ByteOrder
  3. Family
  4. Equals
  5. Any
Implicitly
  1. by LoaderToOps
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. type Endian = Endianness

    Definition Classes
    ByteOrder
  2. type Family = Loader

    Definition Classes
    Family

Abstract Value Members

  1. abstract def as[E <: Endianness](endian: E): Loader with ByteOrder[E]

    Returns an endian ordered view of the address space.

  2. abstract def endian: Endian

    Returns the internal byte order.

    Returns the internal byte order.

    Definition Classes
    ByteOrder
  3. abstract def getClass(): Class[_]

    Definition Classes
    Any
  4. abstract def loadByte(address: Long): Byte

    Loads a single byte.

    Loads a single byte.

    address

    the address to load.

    returns

    the loaded Byte value.

  5. abstract def reader(address: Long): Reader with ByteOrder[Endian]

    Returns a Reader starting at address.

  6. abstract def size: Long

    Returns the size in bytes of the address space.

  7. abstract def toArray: Array[Byte]

    Converts this data to a byte array in the most efficient way possible.

    Converts this data to a byte array in the most efficient way possible. Mutable data may return an internal buffer.

Concrete Value Members

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

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

    Definition Classes
    Any
  3. def ++(that: Loader)(implicit framer: Framer with From[Loader]): (framer)#State

    Implicit information
    This member is added by an implicit conversion from Loader to LoaderOps[Loader] performed by method LoaderToOps in basis.data.
    Definition Classes
    LoaderOps
  4. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  5. final def asInstanceOf[T0]: T0

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

    Definition Classes
    Loader → Equals
  7. def equals(other: Any): Boolean

    Definition Classes
    Loader → Equals → Any
  8. def hashCode(): Int

    Definition Classes
    Loader → Any
  9. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  10. macro def load[T](address: Long)(implicit T: Struct[T]): T

    Implicit information
    This member is added by an implicit conversion from Loader to LoaderOps[Loader] performed by method LoaderToOps in basis.data.
    Definition Classes
    LoaderOps
  11. def loadAlignedDouble(address: Long): Double

    Loads an 8-byte endian ordered word as a native-endian Double value.

    Loads an 8-byte endian ordered word as a native-endian Double value. Truncates address to 8-byte alignment.

    address

    the 8-byte aligned address to load.

    returns

    the loaded Double value.

  12. def loadAlignedFloat(address: Long): Float

    Loads a 4-byte endian ordered word as a native-endian Float value.

    Loads a 4-byte endian ordered word as a native-endian Float value. Truncates address to 4-byte alignment.

    address

    the 4-byte aligned address to load.

    returns

    the loaded Float value.

  13. def loadAlignedInt(address: Long): Int

    Loads a 4-byte endian ordered word as a native-endian Int value.

    Loads a 4-byte endian ordered word as a native-endian Int value. Truncates address to 4-byte alignment.

    address

    the 4-byte aligned address to load.

    returns

    the loaded Int value.

  14. def loadAlignedLong(address: Long): Long

    Loads an 8-byte endian ordered word as a native-endian Long value.

    Loads an 8-byte endian ordered word as a native-endian Long value. Truncates address to 8-byte alignment.

    address

    the 8-byte aligned address to load.

    returns

    the loaded Long value.

  15. def loadAlignedShort(address: Long): Short

    Loads a 2-byte endian ordered word as a native-endian Short value.

    Loads a 2-byte endian ordered word as a native-endian Short value. Truncates address to 2-byte alignment.

    address

    the 2-byte aligned address to load.

    returns

    the loaded Short value.

  16. macro def loadArray[T](address: Long, count: Int)(implicit T: Struct[T]): Array[T]

    Implicit information
    This member is added by an implicit conversion from Loader to LoaderOps[Loader] performed by method LoaderToOps in basis.data.
    Definition Classes
    LoaderOps
  17. def loadDouble(address: Long): Double

    Loads an 8-byte endian ordered word as a native-endian Double value.

    Loads an 8-byte endian ordered word as a native-endian Double value.

    address

    the address to load.

    returns

    the loaded Double value.

  18. def loadDoubleBE(address: Long): Double

    Implicit information
    This member is added by an implicit conversion from Loader to LoaderOps[Loader] performed by method LoaderToOps in basis.data.
    Definition Classes
    LoaderOps
  19. def loadDoubleLE(address: Long): Double

    Implicit information
    This member is added by an implicit conversion from Loader to LoaderOps[Loader] performed by method LoaderToOps in basis.data.
    Definition Classes
    LoaderOps
  20. def loadFloat(address: Long): Float

    Loads a 4-byte endian ordered word as a native-endian Float value.

    Loads a 4-byte endian ordered word as a native-endian Float value.

    address

    the address to load.

    returns

    the loaded Float value.

  21. def loadFloatBE(address: Long): Float

    Implicit information
    This member is added by an implicit conversion from Loader to LoaderOps[Loader] performed by method LoaderToOps in basis.data.
    Definition Classes
    LoaderOps
  22. def loadFloatLE(address: Long): Float

    Implicit information
    This member is added by an implicit conversion from Loader to LoaderOps[Loader] performed by method LoaderToOps in basis.data.
    Definition Classes
    LoaderOps
  23. def loadInt(address: Long): Int

    Loads a 4-byte endian ordered word as a native-endian Int value.

    Loads a 4-byte endian ordered word as a native-endian Int value.

    address

    the address to load.

    returns

    the loaded Int value.

  24. def loadIntBE(address: Long): Int

    Implicit information
    This member is added by an implicit conversion from Loader to LoaderOps[Loader] performed by method LoaderToOps in basis.data.
    Definition Classes
    LoaderOps
  25. def loadIntLE(address: Long): Int

    Implicit information
    This member is added by an implicit conversion from Loader to LoaderOps[Loader] performed by method LoaderToOps in basis.data.
    Definition Classes
    LoaderOps
  26. def loadLong(address: Long): Long

    Loads an 8-byte endian ordered word as a native-endian Long value.

    Loads an 8-byte endian ordered word as a native-endian Long value.

    address

    the address to load.

    returns

    the loaded Long value.

  27. def loadLongBE(address: Long): Long

    Implicit information
    This member is added by an implicit conversion from Loader to LoaderOps[Loader] performed by method LoaderToOps in basis.data.
    Definition Classes
    LoaderOps
  28. def loadLongLE(address: Long): Long

    Implicit information
    This member is added by an implicit conversion from Loader to LoaderOps[Loader] performed by method LoaderToOps in basis.data.
    Definition Classes
    LoaderOps
  29. def loadShort(address: Long): Short

    Loads a 2-byte endian ordered word as a native-endian Short value.

    Loads a 2-byte endian ordered word as a native-endian Short value.

    address

    the address to load.

    returns

    the loaded Short value.

  30. def loadShortBE(address: Long): Short

    Implicit information
    This member is added by an implicit conversion from Loader to LoaderOps[Loader] performed by method LoaderToOps in basis.data.
    Definition Classes
    LoaderOps
  31. def loadShortLE(address: Long): Short

    Implicit information
    This member is added by an implicit conversion from Loader to LoaderOps[Loader] performed by method LoaderToOps in basis.data.
    Definition Classes
    LoaderOps
  32. macro def loadToArray[T](address: Long, array: Array[T], start: Int, count: Int)(implicit T: Struct[T]): Unit

    Implicit information
    This member is added by an implicit conversion from Loader to LoaderOps[Loader] performed by method LoaderToOps in basis.data.
    Definition Classes
    LoaderOps
  33. def loadVolatileByte(address: Long): Byte

    Loads a single byte with volatile semantics if isCoherent.

    Loads a single byte with volatile semantics if isCoherent.

    address

    the address to load.

    returns

    the loaded Byte value.

  34. def loadVolatileDouble(address: Long): Double

    Loads an 8-byte endian ordered word as a native-endian Double value with volatile semantics if isCoherent.

    Loads an 8-byte endian ordered word as a native-endian Double value with volatile semantics if isCoherent. Truncates address to 8-byte alignment.

    address

    the 8-byte aligned address to load.

    returns

    the loaded Double value.

  35. def loadVolatileFloat(address: Long): Float

    Loads a 4-byte endian ordered word as a native-endian Float value with volatile semantics if isCoherent.

    Loads a 4-byte endian ordered word as a native-endian Float value with volatile semantics if isCoherent. Truncates address to 4-byte alignment.

    address

    the 4-byte aligned address to load.

    returns

    the loaded Float value.

  36. def loadVolatileInt(address: Long): Int

    Loads a 4-byte endian ordered word as a native-endian Int value with volatile semantics if isCoherent.

    Loads a 4-byte endian ordered word as a native-endian Int value with volatile semantics if isCoherent. Truncates address to 4-byte alignment.

    address

    the 4-byte aligned address to load.

    returns

    the loaded Int value.

  37. def loadVolatileLong(address: Long): Long

    Loads an 8-byte endian ordered word as a native-endian Long value with volatile semantics if isCoherent.

    Loads an 8-byte endian ordered word as a native-endian Long value with volatile semantics if isCoherent. Truncates address to 8-byte alignment.

    address

    the 8-byte aligned address to load.

    returns

    the loaded Long value.

  38. def loadVolatileShort(address: Long): Short

    Loads a 2-byte endian ordered word as a native-endian Short value with volatile semantics if isCoherent.

    Loads a 2-byte endian ordered word as a native-endian Short value with volatile semantics if isCoherent. Truncates address to 2-byte alignment.

    address

    the 2-byte aligned address to load.

    returns

    the loaded Short value.

  39. def stringPrefix: String

    Attributes
    protected
  40. def toBase16: String

    Implicit information
    This member is added by an implicit conversion from Loader to LoaderOps[Loader] performed by method LoaderToOps in basis.data.
    Definition Classes
    LoaderOps
  41. def toBase64: String

    Implicit information
    This member is added by an implicit conversion from Loader to LoaderOps[Loader] performed by method LoaderToOps in basis.data.
    Definition Classes
    LoaderOps
  42. def toString(): String

    Definition Classes
    Loader → Any
  43. def writeBase16(builder: StringBuilder): Unit

    Implicit information
    This member is added by an implicit conversion from Loader to LoaderOps[Loader] performed by method LoaderToOps in basis.data.
    Definition Classes
    LoaderOps
  44. def writeBase64(builder: StringBuilder): Unit

    Implicit information
    This member is added by an implicit conversion from Loader to LoaderOps[Loader] performed by method LoaderToOps in basis.data.
    Definition Classes
    LoaderOps

Inherited from ByteOrder[Endianness]

Inherited from basis.Family[Loader]

Inherited from Equals

Inherited from Any

Inherited by implicit conversion LoaderToOps from Loader to LoaderOps[Loader]

Aligned

General

Unaligned

Volatile

Ungrouped