org.vertx.scala.core

buffer

package buffer

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

Type Members

  1. final class Buffer extends Self

    A Buffer represents a sequence of zero or more bytes that can be written to or read from, and which expands as necessary to accommodate any bytes written to it.

    A Buffer represents a sequence of zero or more bytes that can be written to or read from, and which expands as necessary to accommodate any bytes written to it.

    There are two ways to write data to a Buffer: The first method involves methods that take the form setXXX. These methods write data into the buffer starting at the specified position. The position does not have to be inside data that has already been written to the buffer; the buffer will automatically expand to encompass the position plus any data that needs to be written. All positions are measured in bytes and start with zero.

    The second method involves methods that take the form appendXXX; these methods append data at the end of the buffer.

    Methods exist to both set and append all primitive types, java.lang.String}, java.nio.ByteBuffer and other instances of Buffer.

    Data can be read from a buffer by invoking methods which take the form getXXX. These methods take a parameter representing the position in the Buffer from where to read data.

    Once a buffer has been written to a socket or other write stream, the same buffer instance can't be written again to another WriteStream.

    Instances of this class are not thread-safe.

  2. trait BufferSeekType[T] extends AnyRef

  3. trait BufferType[T] extends AnyRef

Value Members

  1. object Buffer

  2. implicit object BufferElem extends BufferType[Buffer]

  3. implicit object BufferSeekElem extends BufferSeekType[Buffer]

  4. implicit object ByteElem extends BufferType[Byte]

  5. implicit object BytesElem extends BufferType[Array[Byte]]

  6. implicit object BytesSeekElem extends BufferSeekType[Array[Byte]]

  7. implicit object DoubleElem extends BufferType[Double]

  8. implicit object FloatElem extends BufferType[Float]

  9. implicit object IntElem extends BufferType[Int]

  10. implicit object LongElem extends BufferType[Long]

  11. implicit object ShortElem extends BufferType[Short]

  12. implicit object StringElem extends BufferType[String]

  13. implicit object StringWithEncodingElem extends BufferType[(String, String)]

  14. def bufferHandlerToJava(handler: (Buffer) ⇒ Unit): Handler[java.core.buffer.Buffer]

Inherited from AnyRef

Inherited from Any

Ungrouped