Class/Object

com.github.arturopala.bufferandslice

ByteBuffer

Related Docs: object ByteBuffer | package bufferandslice

Permalink

final class ByteBuffer extends ArrayBufferLike[Byte]

Growable, mutable array of bytes.

Linear Supertypes
ArrayBufferLike[Byte], Buffer[Byte], (Int) ⇒ Byte, AnyRef, Any
Ordering
  1. Grouped
  2. Alphabetic
  3. By Inheritance
Inherited
  1. ByteBuffer
  2. ArrayBufferLike
  3. Buffer
  4. Function1
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ByteBuffer(initialSize: Int = 8)

    Permalink

Value Members

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def andThen[A](g: (Byte) ⇒ A): (Int) ⇒ A

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  5. final def append(value: Byte): ByteBuffer.this.type

    Permalink

    Appends value at the end of the buffer and advances topIndex.

    Appends value at the end of the buffer and advances topIndex.

    Definition Classes
    Buffer
    Annotations
    @inline()
  6. final def appendArray(values: Array[Byte]): ByteBuffer.this.type

    Permalink

    Appends values from the given array at the end of the buffer and advances topIndex.

    Appends values from the given array at the end of the buffer and advances topIndex.

    Definition Classes
    Buffer
    Annotations
    @inline()
  7. final def appendFromIterator(numberOfValues: Int, iterator: Iterator[Byte]): ByteBuffer.this.type

    Permalink

    Appends number of values from the given iterator at the end of the buffer and advances topIndex.

    Appends number of values from the given iterator at the end of the buffer and advances topIndex.

    Definition Classes
    Buffer
    Annotations
    @inline()
  8. final def appendFromIterator(iterator: Iterator[Byte]): ByteBuffer.this.type

    Permalink

    Appends values from the given iterator at the end of the buffer and advances topIndex.

    Appends values from the given iterator at the end of the buffer and advances topIndex.

    Definition Classes
    Buffer
  9. final def appendIterable(iterable: Iterable[Byte]): ByteBuffer.this.type

    Permalink

    Appends values from the given iterable at the end of the buffer and advances topIndex.

    Appends values from the given iterable at the end of the buffer and advances topIndex.

    Definition Classes
    Buffer
    Annotations
    @inline()
  10. final def appendSequence(values: IndexedSeq[Byte]): ByteBuffer.this.type

    Permalink

    Appends values from the given sequence at the end of the buffer and advances topIndex.

    Appends values from the given sequence at the end of the buffer and advances topIndex.

    Definition Classes
    Buffer
    Annotations
    @inline()
  11. final def appendSlice(slice: Slice[Byte]): ByteBuffer.this.type

    Permalink

    Appends values from the given slice at the end of the buffer and advances topIndex.

    Appends values from the given slice at the end of the buffer and advances topIndex.

    Definition Classes
    Buffer
    Annotations
    @inline()
  12. def apply(index: Int): Byte

    Permalink

    Returns value at the given index or 0 if out of scope.

    Returns value at the given index or 0 if out of scope.

    Definition Classes
    ByteBufferBuffer → Function1
  13. def asArray: Array[Byte]

    Permalink

    Returns an Array with a copy of an accessible buffer range.

    Returns an Array with a copy of an accessible buffer range.

    Definition Classes
    ByteBufferBuffer
  14. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  15. def asSlice: ByteSlice

    Permalink

    Wraps accessible internal state as a Slice without making any copy.

    Wraps accessible internal state as a Slice without making any copy.

    Definition Classes
    ByteBufferBuffer
  16. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  17. def compose[A](g: (A) ⇒ Int): (A) ⇒ Byte

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  18. final def contains(value: Byte): Boolean

    Permalink

    Returns true if buffer contains given value.

    Returns true if buffer contains given value.

    Definition Classes
    Buffer
  19. def copy: ByteBuffer.this.type

    Permalink

    Creates a copy of this buffer.

    Creates a copy of this buffer.

    Definition Classes
    ByteBufferBuffer
  20. def copyFrom(slice: Slice[Byte], targetIndex: Int): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    ByteBufferArrayBufferLike
    Annotations
    @inline()
  21. def copyFrom(sourceArray: Array[Byte], sourceIndex: Int, targetIndex: Int, copyLength: Int): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    ByteBufferArrayBufferLike
    Annotations
    @inline()
  22. def copyFromSelf(sourceIndex: Int, targetIndex: Int, copyLength: Int): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    ByteBufferArrayBufferLike
    Annotations
    @inline()
  23. def emptyArray(length: Int): Array[Byte]

    Permalink
    Attributes
    protected
    Definition Classes
    ByteBufferArrayBufferLike
    Annotations
    @inline()
  24. def emptyCopy: ByteBuffer.this.type

    Permalink

    Creates a copy of this buffer.

    Creates a copy of this buffer.

    Definition Classes
    ByteBufferBuffer
  25. def ensureIndex(index: Int): Unit

    Permalink

    Ensures buffer capacity to address provided index.

    Ensures buffer capacity to address provided index.

    Attributes
    protected
    Definition Classes
    ByteBufferBuffer
  26. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  27. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  28. final def exists(pred: (Byte) ⇒ Boolean): Boolean

    Permalink

    Returns true if buffer contains value fulfilling the predicate.

    Returns true if buffer contains value fulfilling the predicate.

    Definition Classes
    Buffer
  29. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  30. final def forward(distance: Int): ByteBuffer.this.type

    Permalink

    Moves topIndex value right by the distance.

    Moves topIndex value right by the distance.

    Definition Classes
    Buffer
  31. final def get(index: Int): Option[Byte]

    Permalink

    Returns Some value at the index, or None if index outside of range.

    Returns Some value at the index, or None if index outside of range.

    Definition Classes
    Buffer
    Annotations
    @inline()
  32. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  34. final def head: Byte

    Permalink

    Returns value at the topIndex.

    Returns value at the topIndex.

    Definition Classes
    Buffer
    Annotations
    @inline()
  35. final def headOption: Option[Byte]

    Permalink

    Returns Some value at the topIndex or None if empty buffer.

    Returns Some value at the topIndex or None if empty buffer.

    Definition Classes
    Buffer
    Annotations
    @inline()
  36. final def init: ByteBuffer.this.type

    Permalink

    Returns this buffer without a first element.

    Returns this buffer without a first element.

    Definition Classes
    Buffer
    Annotations
    @inline()
  37. final def insert(index: Int, value: Byte): ByteBuffer.this.type

    Permalink

    Shifts content in [index, length) one step to the right and updates value at index.

    Shifts content in [index, length) one step to the right and updates value at index.

    Definition Classes
    Buffer
  38. final def insertArray(index: Int, sourceIndex: Int, insertLength: Int, sourceArray: Array[Byte]): ByteBuffer.this.type

    Permalink

    Shift current content to the right starting from indexat the insertLength distance, and copies array chunk into the gap.

    Shift current content to the right starting from indexat the insertLength distance, and copies array chunk into the gap. Sets topIndex to be at least at the end of the new chunk of values.

    Definition Classes
    ArrayBufferLikeBuffer
  39. final def insertFromIterator(index: Int, numberOfValues: Int, iterator: Iterator[Byte]): ByteBuffer.this.type

    Permalink

    Shift current content to the right starting from indexat the min(iterator.length, insertLength) distance, and inserts iterated values into the gap.

    Shift current content to the right starting from indexat the min(iterator.length, insertLength) distance, and inserts iterated values into the gap. - Sets topIndex to be at least at the end of the new chunk of values.

    Definition Classes
    Buffer
  40. final def insertFromIterator(index: Int, iterator: Iterator[Byte]): ByteBuffer.this.type

    Permalink

    Inserts iterated values into the gap made by shiftjng buffer right, starting from the index.

    Inserts iterated values into the gap made by shiftjng buffer right, starting from the index. - Sets topIndex to be at least at the end of the new chunk of values.

    Definition Classes
    Buffer
  41. final def insertFromIteratorReverse(index: Int, numberOfValues: Int, iterator: Iterator[Byte]): ByteBuffer.this.type

    Permalink

    Shift current content to the right starting from indexat the min(iterator.length, insertLength) distance, and inserts iterated values into the gap in the reverse order.

    Shift current content to the right starting from indexat the min(iterator.length, insertLength) distance, and inserts iterated values into the gap in the reverse order. - Sets topIndex to be at least at the end of the new chunk of values.

    Definition Classes
    Buffer
  42. final def insertFromIteratorReverse(index: Int, iterator: Iterator[Byte]): ByteBuffer.this.type

    Permalink

    Inserts iterated values, in the reverse order, into the gap made by shiftjng buffer right, starting from the index.

    Inserts iterated values, in the reverse order, into the gap made by shiftjng buffer right, starting from the index. - Sets topIndex to be at least at the end of the new chunk of values.

    Definition Classes
    Buffer
  43. final def insertSlice(index: Int, slice: Slice[Byte]): ByteBuffer.this.type

    Permalink

    Shift current content to the right starting from index at the slice.length distance, and copies slice content into the gap.

    Shift current content to the right starting from index at the slice.length distance, and copies slice content into the gap. Sets topIndex to be at least at the end of the new chunk of values.

    Definition Classes
    ArrayBufferLikeBuffer
  44. final def insertValues(index: Int, sourceIndex: Int, numberOfValues: Int, source: (Int) ⇒ Byte): ByteBuffer.this.type

    Permalink

    Shift current content to the right starting from indexat the insertLength distance, iterates over the source indexes and copies values into the gap.

    Shift current content to the right starting from indexat the insertLength distance, iterates over the source indexes and copies values into the gap. - Sets topIndex to be at least at the end of the new chunk of values.

    Definition Classes
    Buffer
  45. final def isEmpty: Boolean

    Permalink

    Is the accessible part of the buffer empty?

    Is the accessible part of the buffer empty?

    Definition Classes
    Buffer
    Annotations
    @inline()
  46. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  47. final def iterator: Iterator[Byte]

    Permalink

    Returns an iterator over actual buffer values, starting from the zero index up.

    Returns an iterator over actual buffer values, starting from the zero index up.

    Definition Classes
    Buffer
    Note

    does not copy buffer values,

  48. final def last: Byte

    Permalink

    Returns value at the zero index.

    Returns value at the zero index.

    Definition Classes
    Buffer
    Annotations
    @inline()
  49. final def lastOption: Option[Byte]

    Permalink

    Returns Some value at the zero index, or None if empty buffer.

    Returns Some value at the zero index, or None if empty buffer.

    Definition Classes
    Buffer
    Annotations
    @inline()
  50. final def length: Int

    Permalink

    Length of the accessible part of the buffer.

    Length of the accessible part of the buffer.

    Definition Classes
    Buffer
    Annotations
    @inline()
  51. final def map[K](f: (Byte) ⇒ K): Iterable[K]

    Permalink

    Iterable representing lazily mapped values of this buffer at the time of access.

    Iterable representing lazily mapped values of this buffer at the time of access.

    f

    map function

    Definition Classes
    Buffer
    Annotations
    @inline()
  52. final def mapInPlace(f: (Byte) ⇒ Byte): ByteBuffer.this.type

    Permalink

    Updates in-place all values in the range [0,length) using the function.

    Updates in-place all values in the range [0,length) using the function.

    f

    map function

    Definition Classes
    Buffer
    Annotations
    @inline()
  53. final def modify(index: Int, map: (Byte) ⇒ Byte): ByteBuffer.this.type

    Permalink

    Updates value at the provided index using the function.

    Updates value at the provided index using the function. Index must fall within range [0,length).

    index

    value's index

    map

    map function

    Definition Classes
    Buffer
    Exceptions thrown

    IndexOutOfBoundsException if index lower than zero.

  54. final def modifyAll(map: (Byte) ⇒ Byte): ByteBuffer.this.type

    Permalink

    Updates all values in the range [0,length) using the function.

    Updates all values in the range [0,length) using the function.

    map

    map function

    Definition Classes
    Buffer
  55. final def modifyAllWhen(map: (Byte) ⇒ Byte, pred: (Byte) ⇒ Boolean): ByteBuffer.this.type

    Permalink

    Updates all accepted values in the range [0,length) using the function.

    Updates all accepted values in the range [0,length) using the function.

    map

    map function

    pred

    filter function

    Definition Classes
    Buffer
  56. final def modifyRange(fromIndex: Int, toIndex: Int, map: (Byte) ⇒ Byte): ByteBuffer.this.type

    Permalink

    Updates values in the range [startIndex,toIndex)^^[0,length) using the function. One of {startIndex,toIndex} must fall within range [0,length).

    Updates values in the range [startIndex,toIndex)^^[0,length) using the function. One of {startIndex,toIndex} must fall within range [0,length).

    fromIndex

    index of the first value inclusive

    toIndex

    index of the last value exclusive

    map

    map function

    Definition Classes
    Buffer
    Exceptions thrown

    IndexOutOfBoundsException if index lower than zero.

  57. final def modifyRangeWhen(fromIndex: Int, toIndex: Int, map: (Byte) ⇒ Byte, pred: (Byte) ⇒ Boolean): ByteBuffer.this.type

    Permalink

    Updates values in the range [startIndex,toIndex)^^[0,length) using the function. One of {startIndex,toIndex} must fall within range [0,length).

    Updates values in the range [startIndex,toIndex)^^[0,length) using the function. One of {startIndex,toIndex} must fall within range [0,length).

    fromIndex

    index of the first value inclusive

    toIndex

    index of the last value exclusive

    map

    map function

    pred

    filter function

    Definition Classes
    Buffer
    Exceptions thrown

    IndexOutOfBoundsException if index lower than zero.

  58. final def moveRangeLeft(fromIndex: Int, toIndex: Int, distance: Int): ByteBuffer.this.type

    Permalink

    Moves values in [fromIndex,toIndex) to the left at a distance, to become [fromIndex - distance, toIndex - distance), and moves right any existing values in [fromIndex - distance, fromIndex) to become [toIndex - distance, toIndex).

    Moves values in [fromIndex,toIndex) to the left at a distance, to become [fromIndex - distance, toIndex - distance), and moves right any existing values in [fromIndex - distance, fromIndex) to become [toIndex - distance, toIndex). Shifts right first if distance > fromIndex. Ignores negative distance and values outside of [0,length). Moves topIndex if affected.

    Definition Classes
    ArrayBufferLikeBuffer
  59. final def moveRangeRight(fromIndex: Int, toIndex: Int, distance: Int): ByteBuffer.this.type

    Permalink

    Moves values in [fromIndex,toIndex) to the right at a distance, to become [fromIndex + distance, toIndex + distance), and moves left any existing values in [toIndex, toIndex + distance) to become [fromIndex, fromIndex + distance).

    Moves values in [fromIndex,toIndex) to the right at a distance, to become [fromIndex + distance, toIndex + distance), and moves left any existing values in [toIndex, toIndex + distance) to become [fromIndex, fromIndex + distance). Ignores negative distance and values outside of [0,length). Moves topIndex if affected.

    Definition Classes
    ArrayBufferLikeBuffer
  60. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  61. final def nonEmpty: Boolean

    Permalink

    Is the accessible part of the buffer non empty?

    Is the accessible part of the buffer non empty?

    Definition Classes
    Buffer
    Annotations
    @inline()
  62. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  63. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  64. final def optimize(): ByteBuffer.this.type

    Permalink

    Attempts to optimize buffer storage, if needed.

    Attempts to optimize buffer storage, if needed.

    Definition Classes
    ArrayBufferLikeBuffer
  65. final def peek(offset: Int): Byte

    Permalink

    Returns value at the topIndex - offset.

    Returns value at the topIndex - offset.

    Definition Classes
    Buffer
    Annotations
    @inline()
  66. final def peek: Byte

    Permalink

    Returns value at the topIndex.

    Returns value at the topIndex.

    Definition Classes
    Buffer
    Annotations
    @inline()
  67. final def peekOption(offset: Int): Option[Byte]

    Permalink

    Returns value at the topIndex - offset.

    Returns value at the topIndex - offset.

    Definition Classes
    Buffer
    Annotations
    @inline()
  68. final def pop: Byte

    Permalink

    Returns value at the topIndex, and moves topIndex back.

    Returns value at the topIndex, and moves topIndex back.

    Definition Classes
    Buffer
  69. final def push(value: Byte): ByteBuffer.this.type

    Permalink

    Appends value to the topIndex.

    Appends value to the topIndex. Same as append

    Definition Classes
    Buffer
    Annotations
    @inline()
  70. def read(index: Int): Byte

    Permalink

    Returns value at the given index without checks.

    Returns value at the given index without checks.

    Attributes
    protected
    Definition Classes
    ByteBufferBuffer
    Annotations
    @inline()
  71. final def remove(index: Int): ByteBuffer.this.type

    Permalink

    Removes value at index and shifts content in [index+1, length) to the left.

    Removes value at index and shifts content in [index+1, length) to the left.

    Definition Classes
    Buffer
    Annotations
    @inline()
  72. final def removeRange(fromIndex: Int, toIndex: Int): ByteBuffer.this.type

    Permalink

    Removes values in the range [fromIndex, toIndex) and shifts content in [toIndex, length) to the left.

    Removes values in the range [fromIndex, toIndex) and shifts content in [toIndex, length) to the left.

    Definition Classes
    Buffer
    Annotations
    @inline()
  73. final def removeWhen(pred: (Byte) ⇒ Boolean): ByteBuffer.this.type

    Permalink

    Removes values matching the predicate.

    Removes values matching the predicate.

    Definition Classes
    Buffer
    Annotations
    @inline()
  74. final def replaceFromArray(index: Int, sourceIndex: Int, replaceLength: Int, sourceArray: Array[Byte]): ByteBuffer.this.type

    Permalink

    Replaces current values in the range [index, index + replaceLength) with values of the array range [sourceIndex, sourceIndex + replaceLength).

    Replaces current values in the range [index, index + replaceLength) with values of the array range [sourceIndex, sourceIndex + replaceLength).

    Definition Classes
    ArrayBufferLikeBuffer
  75. final def replaceFromIterator(index: Int, numberOfValues: Int, iterator: Iterator[Byte]): ByteBuffer.this.type

    Permalink

    Replaces current values in the range [index, index + min(iterator.length, replaceLength) ) with values returned from the iterator.

    Replaces current values in the range [index, index + min(iterator.length, replaceLength) ) with values returned from the iterator.

    Definition Classes
    Buffer
  76. final def replaceFromIteratorReverse(index: Int, numberOfValues: Int, iterator: Iterator[Byte]): ByteBuffer.this.type

    Permalink

    Replaces current values in the range [index, index + min(iterator.length, replaceLength)) with values returned from the iterator in the reverse order.

    Replaces current values in the range [index, index + min(iterator.length, replaceLength)) with values returned from the iterator in the reverse order.

    Definition Classes
    Buffer
  77. final def replaceFromSlice(index: Int, slice: Slice[Byte]): ByteBuffer.this.type

    Permalink

    Replaces current values in the range [index, index + slice.length) with values of the slice.

    Replaces current values in the range [index, index + slice.length) with values of the slice.

    Definition Classes
    ArrayBufferLikeBuffer
  78. final def replaceValues(index: Int, sourceIndex: Int, numberOfValues: Int, source: (Int) ⇒ Byte): ByteBuffer.this.type

    Permalink

    Replaces current values in the range [index, index + replaceLength) with values returned by the function when iterating argument in the range [sourceIndex, sourceIndex + replaceLength).

    Replaces current values in the range [index, index + replaceLength) with values returned by the function when iterating argument in the range [sourceIndex, sourceIndex + replaceLength).

    Definition Classes
    Buffer
  79. final def reset: Int

    Permalink

    Resets buffer, sets topIndex to -1.

    Resets buffer, sets topIndex to -1. - Does not clear existing values.

    returns

    previous topIndex

    Definition Classes
    Buffer
  80. final def reverseIterator: Iterator[Byte]

    Permalink

    Returns a reverse iterator over actual buffer values, starting from the topIndex down.

    Returns a reverse iterator over actual buffer values, starting from the topIndex down.

    Definition Classes
    Buffer
  81. final def rewind(distance: Int): ByteBuffer.this.type

    Permalink

    Moves topIndex value left by the distance.

    Moves topIndex value left by the distance.

    Definition Classes
    Buffer
  82. final def set(index: Int): ByteBuffer.this.type

    Permalink

    Sets topIndex value.

    Sets topIndex value.

    Definition Classes
    Buffer
  83. final def shiftLeft(index: Int, distance: Int): ByteBuffer.this.type

    Permalink

    Moves values [index, length) left to [index-distance, length - distance).

    Moves values [index, length) left to [index-distance, length - distance). Effectively removes range (index-distance, index]. Ignores negative distance. Moves topIndex if affected.

    Definition Classes
    ArrayBufferLikeBuffer
  84. final def shiftRight(index: Int, distance: Int): ByteBuffer.this.type

    Permalink

    Moves values [index, length) right to [index+distance, length + distance).

    Moves values [index, length) right to [index+distance, length + distance). Effectively creates a new range [index, index+distance). Ignores negative distance. Does not clear existing values inside [index, index+distance). Moves topIndex if affected.

    Definition Classes
    ArrayBufferLikeBuffer
  85. def slice(from: Int, to: Int): ByteSlice

    Permalink

    Takes range and returns an IntSlice.

    Takes range and returns an IntSlice.

    Definition Classes
    ByteBufferBuffer
  86. final def store(value: Byte): ByteBuffer.this.type

    Permalink

    Replace value at the topIndex.

    Replace value at the topIndex.

    Definition Classes
    Buffer
  87. final def swap(first: Int, second: Int): ByteBuffer.this.type

    Permalink

    Swap two values at the provided indexes.

    Swap two values at the provided indexes. Value at first becomes value at second, and vice versa. - Does nothing if any index falls outside [0,length) or if indexes are equal.

    Definition Classes
    Buffer
  88. final def swapRange(first: Int, second: Int, swapLength: Int): ByteBuffer.this.type

    Permalink

    Swap values in range [first, first + swapLength) with values in range [second, second + swapLength] - Does nothing if any index falls outside [0,length), or if indexes are equal.

    Swap values in range [first, first + swapLength) with values in range [second, second + swapLength] - Does nothing if any index falls outside [0,length), or if indexes are equal. - if [first, first + swapLength) overlaps with [second, second + swapLength) then the later overwrites the former.

    Definition Classes
    ArrayBufferLikeBuffer
  89. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  90. final def tail: ByteBuffer.this.type

    Permalink

    Returns this buffer after decrementing topIndex .

    Returns this buffer after decrementing topIndex .

    Definition Classes
    Buffer
    Annotations
    @inline()
  91. def toArray[T1 >: Byte](implicit arg0: ClassTag[T1]): Array[T1]

    Permalink

    Returns a trimmed copy of an underlying array.

    Returns a trimmed copy of an underlying array.

    Definition Classes
    ByteBufferBuffer
  92. final def toString(): String

    Permalink
    Definition Classes
    ArrayBufferLike → Function1 → AnyRef → Any
  93. final def top: Int

    Permalink

    Returns topIndex value.

    Returns topIndex value.

    Definition Classes
    Buffer
    Annotations
    @inline()
  94. final def touch(index: Int): ByteBuffer.this.type

    Permalink

    Sets topIndex value if lower than index, otherwise keeps existing.

    Sets topIndex value if lower than index, otherwise keeps existing.

    Definition Classes
    Buffer
  95. final def trim(size: Int): ByteBuffer.this.type

    Permalink

    Trims the buffer, if needed, to have at most the size.

    Trims the buffer, if needed, to have at most the size.

    Definition Classes
    Buffer
  96. final def update(index: Int, value: Byte): ByteBuffer.this.type

    Permalink

    Updates value at the provided index.

    Updates value at the provided index. Alters underlying array if necessary.

    Definition Classes
    ArrayBufferLikeBuffer
    Exceptions thrown

    IndexOutOfBoundsException if index lower than zero.

  97. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  100. def write(index: Int, value: Byte): Unit

    Permalink

    Stores value at the given index without checks.

    Stores value at the given index without checks.

    Attributes
    protected
    Definition Classes
    ByteBufferBuffer
    Annotations
    @inline()

Inherited from ArrayBufferLike[Byte]

Inherited from Buffer[Byte]

Inherited from (Int) ⇒ Byte

Inherited from AnyRef

Inherited from Any

Abstract

Export

Internal

Update

Properties

List-like

List like operations, head is the top element

Stack-like

Stack like operations, peek takes the top element

Slice

Append

Insert

Modify

Replace

Remove

Shift

Move

Swap

Limit

Manipulations of the topIndex

Read

Ungrouped