scodec.codecs
Provides implicit conversions from literal types to constant codecs.
For example, with literals._ imported, constant(0x47) ~> uint8 can be written as 0x47 ~> uint8.
literals._
constant(0x47) ~> uint8
0x47 ~> uint8
Supports literal bytes, ints, BitVectors, and ByteVectors.
BitVector
ByteVector
Provides implicit conversions from literal types to constant codecs.
For example, with
literals._
imported,constant(0x47) ~> uint8
can be written as0x47 ~> uint8
.Supports literal bytes, ints,
BitVector
s, andByteVector
s.