Packages

class BytesStorage extends AnyRef

A linear, indexed storage of bytes. Based on the java NIO ByteBuffer for performance. This class isn't thread-safe.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BytesStorage
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BytesStorage(bb: ByteBuffer, pool: StoragePool)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. var bb: ByteBuffer
    Attributes
    protected[this]
  6. final def byteBuffer: ByteBuffer

    returns

    the underlying ByteBuffer

  7. final def capacity: Int

    returns

    the storage's capacity in bytes

  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  9. def discardNow(): Unit

    Returns the storage to the pool.

    Returns the storage to the pool. A discarded storage cannot be used anymore.

  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def get(idx0: Int, to: WritableByteChannel, len: Int): Int

    returns

    the number of bytes written to the channel

  14. def get(idx0: Int, to: ByteBuffer, len: Int): Unit

    reads this[idx0, idx0+len[ into to[to.position, to.position+len[

  15. def get(idx0: Int, to: Array[Byte], off: Int, len: Int): Unit

    reads this[idx0, idx0+len[ into to[off, off+len[

  16. def get(idx0: Int, to: BytesStorage, off: Int, len: Int): Unit

    reads this[idx0, idx0+len[ into to[off, off+len[

  17. def get1(idx: Int): Byte
  18. def get2(idx: Int): Short
  19. def get4(idx: Int): Int
  20. def get8(idx: Int): Long
  21. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. def put(idx0: Int, from: ReadableByteChannel, len: Int): Int

    returns

    the number of bytes read from the channel, or -1 if the EOS has been reached

  28. def put(idx0: Int, from: ByteBuffer, len: Int): Unit

    writes from[from.position, from.position+len[ to this[idx0, idx0+len[

  29. def put(idx0: Int, from: Array[Byte], off: Int, len: Int): Unit

    writes from[off, off+len[ to this[idx0, idx0+len[

  30. def put(idx0: Int, from: BytesStorage, off: Int, len: Int): Unit

    writes from[off, off+len[ to this[idx0, idx0+len[

  31. def put1(idx: Int, value: Byte): Unit
  32. def put2(idx: Int, value: Short): Unit
  33. def put4(idx: Int, value: Int): Unit
  34. def put8(idx: Int, value: Long): Unit
  35. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  36. def toString(): String
    Definition Classes
    AnyRef → Any
  37. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped