Object

org.http4s.blaze.util

BufferTools

Related Doc: package util

Permalink

object BufferTools

Source
BufferTools.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BufferTools
  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. def allocate(size: Int): ByteBuffer

    Permalink

    Allocate a new ByteBuffer on the heap

    Allocate a new ByteBuffer on the heap

    size

    size of desired ByteBuffer

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def bufferToString(buffer: ByteBuffer, charset: Charset = StandardCharsets.UTF_8): String

    Permalink

    Get the String representation of the ByteBuffer

  7. def checkEmpty(buffers: Iterable[ByteBuffer]): Boolean

    Permalink

    Check the array of buffers to ensure they are all empty

    Check the array of buffers to ensure they are all empty

    buffers

    ByteBuffers to check for data

    returns

    true if they are empty, false if there is data remaining

  8. def checkEmpty(buffers: Array[ByteBuffer]): Boolean

    Permalink

    Check the array of buffers to ensure they are all empty

    Check the array of buffers to ensure they are all empty

    buffers

    ByteBuffers to check for data

    returns

    true if they are empty, false if there is data remaining

  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def concatBuffers(oldbuff: ByteBuffer, newbuff: ByteBuffer): ByteBuffer

    Permalink

    Join the two buffers into a single ByteBuffer.

    Join the two buffers into a single ByteBuffer. This method is guaranteed to return a ByteBuffer, but it may be empty.

  11. def copyBuffer(b: ByteBuffer): ByteBuffer

    Permalink

    Make a copy of the ByteBuffer, depleting the input buffer

  12. def dropEmpty(buffers: Array[ByteBuffer]): Int

    Permalink

    Replaces any empty buffers except for the last one with the emptyBuffer to allow GC of depleted ByteBuffers and returns the index of the first non-empty ByteBuffer, or the last index, whichever comes first.

  13. val emptyBuffer: ByteBuffer

    Permalink

    Cached empty ByteBuffer

  14. val emptyFutureBuffer: Future[ByteBuffer]

    Permalink

    Cached Future containing and empty ByteBuffer

  15. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  21. def joinBuffers(buffers: Seq[ByteBuffer]): ByteBuffer

    Permalink

    Merge the ByteBuffers into a single buffer

  22. def mkString(buffers: Seq[ByteBuffer], charset: Charset = StandardCharsets.UTF_8): String

    Permalink

    Make a String from the collection of ByteBuffers

  23. final def ne(arg0: AnyRef): Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  27. def takeSlice(buffer: ByteBuffer, size: Int): ByteBuffer

    Permalink

    Take a slice of bytes from the ByteBuffer, consuming the bytes.

    Take a slice of bytes from the ByteBuffer, consuming the bytes.

    buffer

    ByteBuffer to slice

    size

    number of bytes to slice. Must be less than or equal to the number of bytes remaining in buffer.

    returns

    the resulting view

  28. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped