scodec.bits
package scodec.bits
Type members
Classlikes
sealed abstract class BitVector extends BitwiseOperations[BitVector, Long] with Ordered[BitVector] with Serializable
Persistent vector of bits, stored as bytes.
Bits are numbered left to right, starting at 0.
- Companion
- object
Bitwise operations on a value of type
Repr
.- Type Params
- Idx
-
numeric index type
- Repr
-
type that supports that supports bitwise operations
sealed abstract class ByteVector extends BitwiseOperations[ByteVector, Long] with Ordered[ByteVector] with Serializable
An immutable vector of bytes, backed by a balanced binary tree of
chunks. Most operations are logarithmic in the depth of this tree,
including
operations return lazy views rather than copying any underlying bytes.
Use
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
to obtain a regular
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.- Companion
- object
Extensions
Extensions
extension (ctx: StringContext)