Packages

trait WritableBuffer extends AnyRef

A writable buffer.

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

Self Type
WritableBuffer
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. WritableBuffer
  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 index: Int

    Returns the current write index of this buffer.

  2. abstract def setInt(index: Int, value: Int): WritableBuffer

    Replaces 4 bytes at the given index by the given value

  3. abstract def toReadableBuffer(): ReadableBuffer
  4. abstract def writeByte(byte: Byte): WritableBuffer

    Writes the given Byte into this buffer.

  5. abstract def writeBytes(array: Array[Byte]): WritableBuffer.this.type

    Writes the bytes stored in the given array into this buffer.

  6. abstract def writeDouble(double: Double): WritableBuffer

    Writes the given Double into this buffer.

  7. abstract def writeInt(int: Int): WritableBuffer

    Writes the given Int into this buffer.

  8. abstract def writeLong(long: Long): WritableBuffer

    Writes the given Long into this buffer.

Concrete Value Members

  1. def writeBytes(buffer: ReadableBuffer): WritableBuffer.this.type

    Writes the bytes stored in the given buffer into this buffer.

  2. def writeCString(s: String): WritableBuffer

    Write a UTF-8 encoded C-Style String.

  3. def writeString(s: String): WritableBuffer

    Write a UTF-8 encoded String.