scodec.bits

ByteVector

object ByteVector

Companion for ByteVector.

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

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. def apply(buffer: ByteBuffer): ByteVector

  7. def apply(bytes: Array[Byte]): ByteVector

  8. def apply(bytes: Vector[Byte]): ByteVector

  9. def apply[A](bytes: A*)(implicit arg0: Integral[A]): ByteVector

  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. val empty: ByteVector

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

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

    Definition Classes
    AnyRef → Any
  15. def fill[A](size: Int)(b: A)(implicit arg0: Integral[A]): ByteVector

  16. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def fromBin(str: String): Option[ByteVector]

    Constructs a ByteVector from a binary string or returns None if the string is not valid binary.

    Constructs a ByteVector from a binary string or returns None if the string is not valid binary.

    The string may start with a 0b and it may contain whitespace or underscore characters.

  18. def fromBinDescriptive(str: String): Either[String, ByteVector]

    Constructs a ByteVector from a binary string or returns an error message if the string is not valid binary.

    Constructs a ByteVector from a binary string or returns an error message if the string is not valid binary.

    The string may start with a 0b and it may contain whitespace or underscore characters.

  19. def fromHex(str: String): Option[ByteVector]

    Constructs a ByteVector from a hexadecimal string or returns None if the string is not valid hexadecimal.

    Constructs a ByteVector from a hexadecimal string or returns None if the string is not valid hexadecimal.

    The string may start with a 0x and it may contain whitespace or underscore characters.

  20. def fromHexDescriptive(str: String): Either[String, ByteVector]

    Constructs a ByteVector from a hexadecimal string or returns an error message if the string is not valid hexadecimal.

    Constructs a ByteVector from a hexadecimal string or returns an error message if the string is not valid hexadecimal.

    The string may start with a 0x and it may contain whitespace or underscore characters.

  21. def fromValidBin(str: String): ByteVector

    Constructs a ByteVector from a binary string or throws an IllegalArgumentException if the string is not valid binary.

    Constructs a ByteVector from a binary string or throws an IllegalArgumentException if the string is not valid binary.

    The string may start with a 0b and it may contain whitespace or underscore characters.

    Exceptions thrown
    IllegalArgumentException

    if the string is not valid hexadecimal

  22. def fromValidHex(str: String): ByteVector

    Constructs a ByteVector from a hexadecimal string or throws an IllegalArgumentException if the string is not valid hexadecimal.

    Constructs a ByteVector from a hexadecimal string or throws an IllegalArgumentException if the string is not valid hexadecimal.

    The string may start with a 0x and it may contain whitespace or underscore characters.

    Exceptions thrown
    IllegalArgumentException

    if the string is not valid hexadecimal

  23. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  25. def high(size: Int): ByteVector

  26. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  27. def low(size: Int): ByteVector

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

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

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

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

    Definition Classes
    AnyRef
  32. def toString(): String

    Definition Classes
    AnyRef → Any
  33. def view(at: (Int) ⇒ Byte, size: Int): ByteVector

    Create a ByteVector from a function from Int => Byte and a size.

  34. def view(bytes: ByteBuffer): ByteVector

    Create a ByteVector from a ByteBuffer.

    Create a ByteVector from a ByteBuffer. Unlike apply, this does not make a copy of the input buffer, so callers should take care not to modify the contents of the buffer passed to this function.

  35. def view(bytes: Array[Byte]): ByteVector

    Create a ByteVector from an Array[Byte].

    Create a ByteVector from an Array[Byte]. Unlike apply, this does not make a copy of the input array, so callers should take care not to modify the contents of the array passed to this function.

  36. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped