hex

object hex

Functions for working with base 64.

class Object
trait Matchable
class Any

Value members

Concrete methods

def decode[F[_] : RaiseThrowable]: (F, String) => Byte

Converts a stream of hex text in to a stream of bytes.

Converts a stream of hex text in to a stream of bytes.

If the text is not valid hex, the pipe fails with an exception. There must be an even number of hex digits (nibbles) or the pipe fails with an exception. Whitespace characters are ignored.

The default alphabet is used by this pipe.

def decodeWithAlphabet[F[_] : RaiseThrowable](alphabet: HexAlphabet): (F, String) => Byte

Like decode but takes a hex alphabet.

Like decode but takes a hex alphabet.

def encode[F[_]]: (F, Byte) => String

Encodes a byte stream in to a stream of hexadecimal text. The default hex alphabet is used by this pipe.

Encodes a byte stream in to a stream of hexadecimal text. The default hex alphabet is used by this pipe.

def encodeWithAlphabet[F[_]](alphabet: HexAlphabet): (F, Byte) => String

Like encode but takes a hex alphabet.

Like encode but takes a hex alphabet.