Class/Object

roc.postgresql.transport

Buf

Related Docs: object Buf | package transport

Permalink

final class Buf extends AnyRef

A Buffer for reading and writing primatives to an Array

Note

unlike the existing Buffer, this is both read and write compatible

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

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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  15. def readByte: Byte

    Permalink

    Read one byte from the array

    Read one byte from the array

    returns

    Byte

  16. def readBytes(length: Int): Array[Byte]

    Permalink

    Reads the number of bytes of the given as an argument from the Buffer

    Reads the number of bytes of the given as an argument from the Buffer

    returns

    bytes an Array[Byte] with the requested number of Bytes

  17. def readCStyleString(charset: Charset = StandardCharsets.UTF_8): String

    Permalink

    Reads a C-Style String from the Buffer

    Reads a C-Style String from the Buffer

    charset

    the Charset to use in decoding Bytes. Defaults to UTF-8

    returns

    the converted String

  18. def readDouble: Double

    Permalink

    Reads a Double from the Buffer

    Reads a Double from the Buffer

    returns

    the double read

  19. def readFloat: Float

    Permalink

    Reads a Float from the Buffer

    Reads a Float from the Buffer

    returns

    the float read

  20. def readInt: Int

    Permalink

    Reads an Int from the Buffer

    Reads an Int from the Buffer

    returns

    the int read

  21. def readLong: Long

    Permalink

    Reads a Long from the Buffer

    Reads a Long from the Buffer

    returns

    the long read

  22. def readShort: Short

    Permalink

    Reads a Short from the Buffer

    Reads a Short from the Buffer

    returns

    the short read

  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. def toBytes: Array[Byte]

    Permalink

    Convertes the readable portion of this Buffer to an Array[Byte]

    Convertes the readable portion of this Buffer to an Array[Byte]

    returns

    xs the viewable portion of this buffer as a byte array

  25. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. def writeByte(b: Byte): Unit

    Permalink

    Writes a byte to the buffer

    Writes a byte to the buffer

    b

    to the Byte to write

  30. def writeBytes(xs: Array[Byte]): Unit

    Permalink

    Writes an Array of bytes to the buffer

    Writes an Array of bytes to the buffer

    xs

    an Array[Byte]

  31. def writeCStyleString(s: String, charset: Charset = StandardCharsets.UTF_8): Unit

    Permalink

    Writes a String to the Buffer using the given Charset, then writes a terminated NULL

    Writes a String to the Buffer using the given Charset, then writes a terminated NULL

    s

    the String to write to the Buffer

    charset

    the Charset used in coverting a Char => Byte(s)

  32. def writeDouble(d: Double): Unit

    Permalink

    Writes an 8-Byte Double to Buffer

    Writes an 8-Byte Double to Buffer

    d

    the double to write

  33. def writeFloat(f: Float): Unit

    Permalink

    Writes a 4-Byte Float to Buffer

    Writes a 4-Byte Float to Buffer

    f

    the float to write

  34. def writeInt(i: Int): Unit

    Permalink

    Writes a 4-Byte Int to Buffer

    Writes a 4-Byte Int to Buffer

    i

    the long to write

  35. def writeLong(l: Long): Unit

    Permalink

    Writes an 8-Byte long to Buffer

    Writes an 8-Byte long to Buffer

    l

    the long to write

  36. def writeNull(): Unit

    Permalink

    Writes a 1-Byte NULL (0x00) to the buffer

  37. def writeShort(s: Short): Unit

    Permalink

    Writes a 2-Byte short to Buffer

    Writes a 2-Byte short to Buffer

    s

    the short to write

Inherited from AnyRef

Inherited from Any

Ungrouped