scodec.bits

package scodec.bits

Members list

Concise view

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.

Attributes

Source:
Bases.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Bases.type
sealed trait ByteOrdering

Enumeration of byte ordering.

Enumeration of byte ordering.

Attributes

Companion:
object
Source:
ByteOrdering.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object BigEndian.type
object LittleEndian.type

Companion for ByteOrdering.

Companion for ByteOrdering.

Attributes

Companion:
trait
Source:
ByteOrdering.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
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.

Attributes

Companion:
object
Source:
HexDumpFormat.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion:
class
Source:
HexDumpFormat.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
object Literals

Attributes

Source:
Interpolators.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
object crc

Provides support for calculating cyclic redundancy checks.

Provides support for calculating cyclic redundancy checks.

Attributes

See also:
Source:
crc.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
crc.type

Extensions

Extensions

extension (ctx: StringContext)
inline def utf8Bytes(inline args: Any*): ByteVector

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

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

Attributes

Example:
scala> val b = utf8"ɟǝǝqpɐǝp"
val b: scodec.bits.ByteVector = ByteVector(13 bytes, 0xc99fc79dc79d7170c990c79d70)
Source:
Interpolators.scala
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.

Attributes

Example:
scala> val b = hex"deadbeef"
val b: scodec.bits.ByteVector = ByteVector(4 bytes, 0xdeadbeef)
Source:
Interpolators.scala
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.

Attributes

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

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

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

Attributes

Example:
scala> val b = ascii"deadbeef"
val b: scodec.bits.ByteVector = ByteVector(8 bytes, 0x6465616462656566)
Source:
Interpolators.scala