Packages

p

scodec

bits

package bits

Provides immutable data types for working with bits and bytes.

Source
package.scala
See also

BitVector and ByteVector

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. bits
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. implicit final class BinStringSyntax extends AnyVal

    Provides the bin string interpolator, which returns BitVector instances from binary strings.

  2. sealed abstract class BitVector extends BitwiseOperations[BitVector, Long] with Serializable

    Persistent vector of bits, stored as bytes.

    Persistent vector of bits, stored as bytes.

    Bits are numbered left to right, starting at 0.

  3. trait BitwiseOperations[Repr <: BitwiseOperations[Repr, Idx], Idx] extends AnyRef

    Bitwise operations on a value of type Repr.

    Bitwise operations on a value of type Repr.

    Repr

    type that supports that supports bitwise operations

    Idx

    numeric index type

  4. sealed trait ByteOrdering extends AnyRef

    Enumeration of byte ordering.

  5. sealed abstract class ByteVector extends BitwiseOperations[ByteVector, Long] with Serializable

    An immutable vector of bytes, backed by a balanced binary tree of chunks.

    An immutable vector of bytes, backed by a balanced binary tree of chunks. Most operations are logarithmic in the depth of this tree, including ++, :+, +:, update, and insert. Where possible, operations return lazy views rather than copying any underlying bytes. Use copy to copy all underlying bytes to a fresh, array-backed ByteVector.

    Unless otherwise noted, operations follow the same naming as the scala standard library collections, though this class does not extend any of the standard scala collections. Use toIndexedSeq, toSeq, or toIterable to obtain a regular scala.collection type.

  6. implicit final class HexStringSyntax extends AnyVal

    Provides the hex string interpolator, which returns ByteVector instances from hexadecimal strings.

Value Members

  1. object Bases

    Provides types related to base conversion -- e.g., binary, hexadecimal, and base 64.

  2. object BitVector extends Serializable

    Companion for BitVector.

  3. object BuildInfo extends Product with Serializable

    This object was generated by sbt-buildinfo.

  4. object ByteOrdering

    Companion for ByteOrdering.

  5. object ByteVector extends Serializable

    Companion for ByteVector.

  6. object LiteralSyntaxMacros

    Macros that support binary and hexadecimal literals.

  7. object crc

    Provides support for calculating cyclic redundancy checks.

    Provides support for calculating cyclic redundancy checks.

    See also

    http://www.repairfaq.org/filipg/LINK/F_crc_v3.html

Inherited from AnyRef

Inherited from Any

Ungrouped