scodec.bits

package scodec.bits

Members list

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
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
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object BigEndian.type
object LittleEndian.type
object ByteOrdering

Companion for ByteOrdering.

Companion for ByteOrdering.

Attributes

Companion
trait
Source
ByteOrdering.scala
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
Supertypes
class Object
trait Matchable
class Any
object HexDumpFormat

Attributes

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

Attributes

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

Provides support for calculating cyclic redundancy checks.

Provides support for calculating cyclic redundancy checks.

Attributes

See also

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

Source
crc.scala
Supertypes
class Object
trait Matchable
class Any
Self type
crc.type

Extensions

Extensions

extension (inline 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 (inline 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 (inline 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
extension (inline 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