com.twitter.finagle.exp.mysql.transport

BufferWriter

trait BufferWriter extends Buffer

Provides convenient methods for writing the data in a mysql packet body. All data is encoded in little 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
Buffer, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. BufferWriter
  2. Buffer
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def offset: Int

    Current writer offset.

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

  3. abstract val underlying: ChannelBuffer

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

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

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

  6. abstract def writeByte(n: Int): BufferWriter

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

    Writes bytes onto the buffer.

    Writes bytes onto the buffer.

    bytes

    Array[Byte] to copy onto the buffer.

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

  9. abstract def writeFloat(f: Float): BufferWriter

  10. abstract def writeInt(n: Int): BufferWriter

  11. abstract def writeInt24(n: Int): BufferWriter

  12. abstract def writeLong(n: Long): BufferWriter

  13. abstract def writeShort(n: Int): BufferWriter

Concrete Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def capacity: Int

    Definition Classes
    Buffer
  8. def clone(): AnyRef

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

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

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

    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.

  12. def fillRest(b: Byte): BufferWriter

    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.

  13. def finalize(): Unit

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

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

    Definition Classes
    AnyRef → Any
  16. def headOption: Option[Byte]

    Definition Classes
    Buffer
  17. final def isInstanceOf[T0]: Boolean

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

    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

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

    Definition Classes
    AnyRef
  22. def toString(): String

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

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

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

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

    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.

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

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

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

    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.

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

    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