Trait

roc.postgresql.transport

BufferWriter

Related Doc: package transport

Permalink

trait BufferWriter extends Buffer

Provides convenient methods for writing the data in a postgresql packet body. All data is encoded in big endian byte order in accordance with the mysql protocol. Operations are side-effecting, that is, all operations increase the offset into the underlying buffer.

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

Abstract Value Members

  1. abstract def offset: Int

    Permalink

    Current writer offset.

  2. abstract def skip(n: Int): BufferWriter

    Permalink
  3. abstract def toBytes: Array[Byte]

    Permalink
  4. abstract val underlying: ChannelBuffer

    Permalink
    Definition Classes
    Buffer
  5. abstract def writable(width: Int): Boolean

    Permalink

    Denotes if the buffer is writable upto the given width based on the current offset.

  6. abstract def writeBoolean(b: Boolean): BufferWriter

    Permalink
  7. abstract def writeByte(n: Int): BufferWriter

    Permalink
  8. abstract def writeBytes(bytes: Array[Byte]): BufferWriter

    Permalink

    Writes bytes onto the buffer.

    Writes bytes onto the buffer.

    bytes

    Array[Byte] to copy onto the buffer.

  9. abstract def writeDouble(d: Double): BufferWriter

    Permalink
  10. abstract def writeFloat(f: Float): BufferWriter

    Permalink
  11. abstract def writeInt(n: Int): BufferWriter

    Permalink
  12. abstract def writeInt24(n: Int): BufferWriter

    Permalink
  13. abstract def writeLong(n: Long): BufferWriter

    Permalink
  14. abstract def writeNull: BufferWriter

    Permalink
  15. abstract def writeShort(n: Int): BufferWriter

    Permalink

Concrete 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 capacity: Int

    Permalink
    Definition Classes
    Buffer
  6. def clone(): AnyRef

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  9. def fill(n: Int, b: Byte): BufferWriter

    Permalink

    Fills the buffer from current offset to offset+n with b.

    Fills the buffer from current offset to offset+n with b.

    n

    width to fill

    b

    Byte used to fill.

  10. def fillRest(b: Byte): BufferWriter

    Permalink

    Fills the rest of the buffer with the given byte.

    Fills the rest of the buffer with the given byte.

    b

    Byte used to fill.

  11. def finalize(): Unit

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  18. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  19. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. def writeLengthCodedBinary(length: Long): BufferWriter

    Permalink

    Writes a length coded binary according the the MySQL Client/Server protocol.

    Writes a length coded binary according the the MySQL Client/Server protocol. Refer to MySQL documentation for more information.

  24. def writeLengthCodedBytes(bytes: Array[Byte]): BufferWriter

    Permalink

    Writes a length coded set of bytes according to the MySQL client/server protocol.

  25. def writeLengthCodedString(s: String, charset: Charset = Charset.defaultCharset): BufferWriter

    Permalink

    Writes a length coded string using the MySQL Client/Server protocol.

    Writes a length coded string using the MySQL Client/Server protocol. Uses Charset.defaultCharset by default to decode the given String.

    s

    String to write to buffer.

  26. def writeNullTerminatedString(s: String, charset: Charset = Charset.defaultCharset): BufferWriter

    Permalink

    Writes a null terminated string onto the buffer where '\0' denotes null.

    Writes a null terminated string onto the buffer where '\0' denotes null. Uses Charset.defaultCharset by default to decode the given String.

    s

    String to write.

Inherited from Buffer

Inherited from AnyRef

Inherited from Any

Ungrouped