com.twitter.finagle.exp.mysql.protocol

BufferReader

trait BufferReader extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. BufferReader
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def array: Array[Byte]

    Access the underlying array.

    Access the underlying array. Note, this is not always a safe operation because the the buffer could contain a composition of arrays, in which case this will throw an exception.

  2. abstract def offset: Int

    Current offset in the buffer.

  3. abstract def readByte(): Byte

  4. abstract def readDouble(): Double

  5. abstract def readFloat(): Float

  6. abstract def readInt(): Int

  7. abstract def readInt24(): Int

  8. abstract def readLong(): Long

  9. abstract def readShort(): Short

  10. abstract def readUnsignedByte(): Short

  11. abstract def readUnsignedInt(): Long

  12. abstract def readUnsignedInt24(): Int

  13. abstract def readUnsignedShort(): Int

  14. abstract def readable(width: Int): Boolean

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

  15. abstract def skip(n: Int): Unit

    Increases offset by n.

  16. abstract def take(n: Int): Array[Byte]

    Consumes n bytes in the buffer and returns them in a new Array.

    Consumes n bytes in the buffer and returns them in a new Array.

    returns

    An Array[Byte] containing bytes from offset to offset+n

  17. abstract def toChannelBuffer: ChannelBuffer

    Returns a Netty ChannelBuffer representing the underlying array.

    Returns a Netty ChannelBuffer representing the underlying array. The ChannelBuffer is guaranteed ByteOrder.LITTLE_ENDIAN.

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

    Buffer capacity.

  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 finalize(): Unit

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

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

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

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

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

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

    Definition Classes
    AnyRef
  18. def readLengthCodedBinary(): Int

    Reads a MySQL data field.

    Reads a MySQL data field. A variable-length numeric value. Depending on the first byte, reads a different width from the buffer. For more info, refer to MySQL Client/Server protocol documentation.

    returns

    a numeric value representing the number of bytes expected to follow.

  19. def readLengthCodedBytes(): Array[Byte]

    Reads a length encoded set of bytes according to the MySQL Client/Server protocol.

    Reads a length encoded set of bytes according to the MySQL Client/Server protocol. This is indentical to a length coded string except the bytes are returned raw.

    returns

    an Array[Byte] containing the length coded set of bytes starting at offset.

  20. def readLengthCodedString(charset: Charset = Charset.defaultCharset): String

    Reads a length encoded string according to the MySQL Client/Server protocol.

    Reads a length encoded string according to the MySQL Client/Server protocol. Uses Charset.defaultCharset by default to decode strings. For more details refer to MySQL documentation.

    returns

    a MySQL length coded String starting at offset.

  21. def readNullTerminatedBytes(): Array[Byte]

    Reads a null-terminated array where null is denoted by '\0'.

    Reads a null-terminated array where null is denoted by '\0'.

    returns

    a null-terminated String starting at offset.

  22. def readNullTerminatedString(charset: Charset = Charset.defaultCharset): String

    Reads a null-terminated string where null is denoted by '\0'.

    Reads a null-terminated string where null is denoted by '\0'. Uses Charset.defaultCharset by default to decode strings.

    returns

    a null-terminated String starting at offset.

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

    Definition Classes
    AnyRef
  24. def takeRest(): Array[Byte]

    Consumes the rest of the buffer and returns it in a new Array[Byte].

    Consumes the rest of the buffer and returns it in a new Array[Byte].

    returns

    Array[Byte] containing the rest of the buffer.

  25. def toString(start: Int, length: Int, charset: Charset): String

    Returns the bytes from start to start+length into a string using the given java.

    Returns the bytes from start to start+length into a string using the given java.nio.charset.Charset.

  26. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any

Ungrouped