scodec.bits

package scodec.bits

Type members

Classlikes

object Bases

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

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

sealed trait ByteOrdering

Enumeration of byte ordering.

Enumeration of byte ordering.

Companion:
object

Companion for ByteOrdering.

Companion for ByteOrdering.

Companion:
class
final class HexDumpFormat

Creates hex dumps for bit and byte vectors.

Creates hex dumps for bit and byte vectors.

Formatting options can be specified by starting with HexDumpFormat.Default and then calling various withXyz methods.

Companion:
object
Companion:
class
object Literals
object crc

Provides support for calculating cyclic redundancy checks.

Provides support for calculating cyclic redundancy checks.

See also:

Extensions

Extensions

extension (ctx: StringContext)
inline def bin(inline args: Any*): BitVector

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

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

Example:
scala> val b = bin"1010101010"
val b: scodec.bits.BitVector = BitVector(10 bits, 0xaa8)
extension (ctx: StringContext)
inline def hex(inline args: Any*): ByteVector

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

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

Example:
scala> val b = hex"deadbeef"
val b: scodec.bits.ByteVector = ByteVector(4 bytes, 0xdeadbeef)