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
Ordering
- Alphabetic
- By Inheritance
Inherited
- BytesStorage
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new BytesStorage(bb: ByteBuffer, pool: StoragePool)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
var
bb: ByteBuffer
- Attributes
- protected[this]
-
final
def
byteBuffer: ByteBuffer
- returns
the underlying ByteBuffer
-
final
def
capacity: Int
- returns
the storage's capacity in bytes
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
discardNow(): Unit
Returns the storage to the pool.
Returns the storage to the pool. A discarded storage cannot be used anymore.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
get(idx0: Int, to: WritableByteChannel, len: Int): Int
- returns
the number of bytes written to the channel
-
def
get(idx0: Int, to: ByteBuffer, len: Int): Unit
reads
this[idx0, idx0+len[intoto[to.position, to.position+len[ -
def
get(idx0: Int, to: Array[Byte], off: Int, len: Int): Unit
reads
this[idx0, idx0+len[intoto[off, off+len[ -
def
get(idx0: Int, to: BytesStorage, off: Int, len: Int): Unit
reads
this[idx0, idx0+len[intoto[off, off+len[ - def get1(idx: Int): Byte
- def get2(idx: Int): Short
- def get4(idx: Int): Int
- def get8(idx: Int): Long
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
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
-
def
put(idx0: Int, from: ByteBuffer, len: Int): Unit
writes
from[from.position, from.position+len[tothis[idx0, idx0+len[ -
def
put(idx0: Int, from: Array[Byte], off: Int, len: Int): Unit
writes
from[off, off+len[tothis[idx0, idx0+len[ -
def
put(idx0: Int, from: BytesStorage, off: Int, len: Int): Unit
writes
from[off, off+len[tothis[idx0, idx0+len[ - def put1(idx: Int, value: Byte): Unit
- def put2(idx: Int, value: Short): Unit
- def put4(idx: Int, value: Int): Unit
- def put8(idx: Int, value: Long): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()