Object

org.http4s.blaze.util

BufferTools

Related Doc: package util

Permalink

object BufferTools

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): String

    Permalink

    Get the String representation of the ByteBuffer

  7. def checkEmpty(buffers: TraversableOnce[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. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

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

    Permalink

    Merge the ByteBuffers into a single buffer

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

    Permalink

    Make a String from the collection of ByteBuffers

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

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

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

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

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

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped