Packages

trait ReadableBuffer extends AnyRef

A readable buffer.

The implementation MUST ensure it reads data in little endian when needed.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ReadableBuffer
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def discard(n: Int): Unit

    Sets the read index to index + n (in other words, skips n bytes).

  2. abstract def duplicate(): ReadableBuffer
  3. abstract def index: Int

    Returns the current read index of this buffer.

  4. abstract def index_=(i: Int): Unit
  5. abstract def readByte(): Byte

    Reads a Byte from this buffer.

  6. abstract def readBytes(bytes: Array[Byte]): Unit

    Fills the given array with the bytes read from this buffer.

  7. abstract def readDouble(): Double

    Reads a Double from this buffer.

  8. abstract def readInt(): Int

    Reads an Int from this buffer.

  9. abstract def readLong(): Long

    Reads a Long from this buffer.

  10. abstract def readable(): Int

    Returns the number of readable remaining bytes of this buffer.

  11. abstract def size: Int

    Returns the buffer size.

  12. abstract def slice(n: Int): ReadableBuffer

    Returns a new instance of ReadableBuffer, which starts at the current index and contains n bytes.

    Returns a new instance of ReadableBuffer, which starts at the current index and contains n bytes.

    This method does not update the read index of the original buffer.

  13. abstract def toWritableBuffer: WritableBuffer

Concrete Value Members

  1. def readArray(length: Int): Array[Byte]

    Reads an array of Byte of the given length.

    Reads an array of Byte of the given length.

    length

    the length of the newly created array.

  2. def readCString(): String

    Reads a UTF-8 C-Style String.

  3. def readString(): String

    Reads a UTF-8 String.