basis.data

ByteBuffer

trait ByteBuffer extends Loader with Storer

Source
ByteBuffer.scala
Linear Supertypes
Known Subclasses
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Grouped
  2. Alphabetic
  3. By inheritance
Inherited
  1. ByteBuffer
  2. Storer
  3. Loader
  4. ByteOrder
  5. Equals
  6. Any
Implicitly
  1. by LoaderToOps
  2. by StorerToOps
  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

Abstract Value Members

  1. abstract def ++(that: Loader): ByteBuffer with ByteOrder[Endian]

  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.

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

    Returns a Reader starting at address.

    Returns a Reader starting at address.

    Definition Classes
    Loader
  6. abstract def size: Long

    Returns the size in bytes of the address space.

    Returns the size in bytes of the address space.

    Definition Classes
    Storer
  7. abstract def storeByte(address: Long, value: Byte): Unit

    Stores a single byte.

    Stores a single byte.

    address

    the storage address.

    value

    the Byte value to store.

    Definition Classes
    Storer
  8. abstract def toArray: Array[Byte]

Concrete Value Members

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

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

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

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

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

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

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

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

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

    Implicit information
    This member is added by an implicit conversion from ByteBuffer to LoaderOps performed by method LoaderToOps in basis.data.
    Definition Classes
    LoaderOps
  10. 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.

    Definition Classes
    Loader
  11. 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.

    Definition Classes
    Loader
  12. 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.

    Definition Classes
    Loader
  13. 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.

    Definition Classes
    Loader
  14. 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.

    Definition Classes
    Loader
  15. 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 ByteBuffer to LoaderOps performed by method LoaderToOps in basis.data.
    Definition Classes
    LoaderOps
  16. 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.

    Definition Classes
    Loader
  17. 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.

    Definition Classes
    Loader
  18. 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.

    Definition Classes
    Loader
  19. 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.

    Definition Classes
    Loader
  20. 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.

    Definition Classes
    Loader
  21. 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 ByteBuffer to LoaderOps performed by method LoaderToOps in basis.data.
    Definition Classes
    LoaderOps
  22. 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.

    Definition Classes
    Loader
  23. 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.

    Definition Classes
    Loader
  24. 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.

    Definition Classes
    Loader
  25. 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.

    Definition Classes
    Loader
  26. 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.

    Definition Classes
    Loader
  27. 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.

    Definition Classes
    Loader
  28. macro def store[T](address: Long, value: T)(implicit T: Struct[T]): Unit

    Implicit information
    This member is added by an implicit conversion from ByteBuffer to StorerOps performed by method StorerToOps in basis.data.
    Definition Classes
    StorerOps
  29. def storeAlignedDouble(address: Long, value: Double): Unit

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

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

    address

    the 8-byte aligned storage address.

    value

    the Double value to store.

    Definition Classes
    Storer
  30. def storeAlignedFloat(address: Long, value: Float): Unit

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

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

    address

    the 4-byte aligned storage address.

    value

    the Float value to store.

    Definition Classes
    Storer
  31. def storeAlignedInt(address: Long, value: Int): Unit

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

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

    address

    the 4-byte aligned storage address.

    value

    the Int value to store.

    Definition Classes
    Storer
  32. def storeAlignedLong(address: Long, value: Long): Unit

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

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

    address

    the 8-byte aligned storage address.

    value

    the Long value to store.

    Definition Classes
    Storer
  33. def storeAlignedShort(address: Long, value: Short): Unit

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

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

    address

    the 2-byte aligned storage address.

    value

    the Short value to store.

    Definition Classes
    Storer
  34. macro def storeArray[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 ByteBuffer to StorerOps performed by method StorerToOps in basis.data.
    Definition Classes
    StorerOps
  35. def storeDouble(address: Long, value: Double): Unit

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

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

    address

    the storage address.

    value

    the Double value to store.

    Definition Classes
    Storer
  36. def storeFloat(address: Long, value: Float): Unit

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

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

    address

    the storage address.

    value

    the Float value to store.

    Definition Classes
    Storer
  37. def storeInt(address: Long, value: Int): Unit

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

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

    address

    the storage address.

    value

    the Int value to store.

    Definition Classes
    Storer
  38. def storeLong(address: Long, value: Long): Unit

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

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

    address

    the storage address.

    value

    the Long value to store.

    Definition Classes
    Storer
  39. def storeShort(address: Long, value: Short): Unit

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

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

    address

    the storage address.

    value

    the Short value to store.

    Definition Classes
    Storer
  40. def storeVolatileByte(address: Long, value: Byte): Unit

    Stores a single byte with volatile semantics if isCoherent.

    Stores a single byte with volatile semantics if isCoherent.

    address

    the storage address.

    value

    the Byte value to store.

    Definition Classes
    Storer
  41. def storeVolatileDouble(address: Long, value: Double): Unit

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

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

    address

    the 8-byte aligned storage address.

    value

    the Double value to store.

    Definition Classes
    Storer
  42. def storeVolatileFloat(address: Long, value: Float): Unit

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

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

    address

    the 4-byte aligned storage address.

    value

    the Float value to store.

    Definition Classes
    Storer
  43. def storeVolatileInt(address: Long, value: Int): Unit

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

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

    address

    the 4-byte aligned storage address.

    value

    the Int value to store.

    Definition Classes
    Storer
  44. def storeVolatileLong(address: Long, value: Long): Unit

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

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

    address

    the 8-byte aligned storage address.

    value

    the Long value to store.

    Definition Classes
    Storer
  45. def storeVolatileShort(address: Long, value: Short): Unit

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

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

    address

    the 2-byte aligned storage address.

    value

    the Short value to store.

    Definition Classes
    Storer
  46. def stringPrefix: String

    Attributes
    protected
    Definition Classes
    Loader
  47. def toBase64: String

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

    Definition Classes
    Loader → Any
  49. def writeBase64(builder: StringBuilder): Unit

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

Inherited from Storer

Inherited from Loader

Inherited from ByteOrder[Endianness]

Inherited from Equals

Inherited from Any

Inherited by implicit conversion LoaderToOps from ByteBuffer to LoaderOps

Inherited by implicit conversion StorerToOps from ByteBuffer to StorerOps

Aligned

General

Unaligned

Volatile

Ungrouped