package bits
Provides immutable data types for working with bits and bytes.
- Source
- package.scala
- See also
BitVector and ByteVector
- Alphabetic
- By Inheritance
- bits
- ScalaVersionSpecific
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- implicit final class BinStringSyntax extends AnyVal
Provides the
bin
string interpolator, which returnsBitVector
instances from binary strings. - sealed abstract class BitVector extends BitwiseOperations[BitVector, Long] with Ordered[BitVector] 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.
- 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
- sealed trait ByteOrdering extends AnyRef
Enumeration of byte ordering.
- 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.
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
, andinsert
. Where possible, operations return lazy views rather than copying any underlying bytes. Usecopy
to copy all underlying bytes to a fresh, array-backedByteVector
.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
, ortoIterable
to obtain a regularscala.collection
type. - implicit final class HexStringSyntax extends AnyVal
Provides the
hex
string interpolator, which returnsByteVector
instances from hexadecimal strings.
Value Members
- object Bases
Provides types related to base conversion -- e.g., binary, hexadecimal, and base 64.
- object BitVector extends BitVectorPlatform with Serializable
Companion for BitVector.
- case object BuildInfo extends Product with Serializable
This object was generated by sbt-buildinfo.
- object ByteOrdering
Companion for ByteOrdering.
- object ByteVector extends ByteVectorPlatform with Serializable
Companion for ByteVector.
- object LiteralSyntaxMacros
Macros that support binary and hexadecimal literals.
- 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