codec that encodes/decodes to space *
converts string to bits, given supplied encoding *
Decodes bytes util f
holds.
Decodes bytes util f
holds. Encodes as identity
codec that encodes and deoces to supplied string *
like constantString1
but decodes when matches case insensitive.
like constantString1
but decodes when matches case insensitive. Works fro ascii only. *
Codec with a default value that is implied if there is no value in the supplied bits.
Codec with a default value that is implied if there is no value in the supplied bits.
If the value that is to be encoded is equal to the default value of the codec, then we do not encode anything.
The codec to attempt to be decoded
drops while f
holds.
drops while f
holds. Then when encoding uses encodeAs
*
creates duration from specified units *
encodes duration in Ms for Int *
When decoding takes up bytes if open and close character are found.
When decoding takes up bytes if open and close character are found. if there are multiple open characters found, this decodes until matching close characters are found. When encoding wraps the result of codec to open and close characters
encodes as ms since epoch *
Decodes string from eventually quoted string.
Decodes string from eventually quoted string.
If the decoded string was not quoted and contains chars within quotableChars
the encoding will fail
Chars that must be quoted
A quoting char
An escape char used to escape quote and eventually other chars.
Charset
Float encoded as string value
Applies predicate f
to check whether A
was decoded successfully, or may be encoded.
Applies predicate f
to check whether A
was decoded successfully, or may be encoded.
If f
yields to String, then this signals failure
a codec that will ignore when decoding all bytes until f
holds, On encoding will encode to empty *
codec that ignores any Whitespace when decoding *
Int encoded as string value
int codec, that allows min/max bounds inclusive *
Int encoded as string value
correct version of lookahead that won't encode codec
when encoding *
will encode a collection of A
with at max size of sz
*
A maybe value, that should be encoded only if there is some value present.
A maybe value, that should be encoded only if there is some value present.
Tries to decode the value using the given codec, if the decode fails we return None.
The codec to attempt to be decoded/encoded
will encode a collection of A
with min size of at least sz
*
codec for ascii strings that may be quoted *
A generic codec to encode quoted string.
A generic codec to encode quoted string.
Quoted string starts with Ascii quote
char and continues with any character, compatible with charset.
Characters may be escaped by escape
and correct character. Any quote
char must be escaped.
Charset of the string. Must be ASCII backward compatible, not using first 7 bits of each byte for the characters except the ascii ones.
Quote enclosing the string. Must be ascii character
Escape char, must be ascii.
like Recover codec, but with fixed encode *
Codec for a set of a given A
.
Codec for a set of a given A
.
The codec of A
that is to be used for decoding values.
string codec, that allows min/max bounds on size inclusive *
tags value A
with T
*
takes bytes until f
holds, then decodes via codec
*
A codec that takes all bytes until discriminator
is found.
A codec that takes all bytes until discriminator
is found. Then codec
is applied to get A
Remainder AFTER discriminator is returned
takes bytes until char or chars are encountered *
A codec, that on decoding will first decode via terminator
and when that will be successful,
will take all bits returned by terminator
and passes them to be decoded by codec
.
A codec, that on decoding will first decode via terminator
and when that will be successful,
will take all bits returned by terminator
and passes them to be decoded by codec
.
On encoding, this will encode A
followed by terminator.
Codec that encodes/decodes A
Terminator that returns sequence of data for codec
Decodes bytes that are terminated by supplied byte, and then applies codec on bytes decoded
differs from codec ~ delimiter
so the delimiter is scanned first and then codec
is applied.
Decodes bytes that are terminated by supplied byte, and then applies codec on bytes decoded
differs from codec ~ delimiter
so the delimiter is scanned first and then codec
is applied.
The delimiter is not part of any remainder returned when decoding.
instead using delimiter to encode, encDelimiter is used.
Decodes to token(string) eventually terminated by terminator
.
Decodes to token(string) eventually terminated by terminator
. Terminator is not customed by this codec.. encodes to codec.
Terminator must be Ascii Char
codec to terminate the value
tzerminator
codec that decodes codec, until EOL signature is found.
codec that decodes codec, until EOL signature is found. EOL is defined as crlf or lf only*
codec that takes until any whitespace and then this applies supplied codec *
like vector[A], but instead consuming all bytes on decoding will try to consume all bytes that match for A
and will leave last bytes that did not match as remainder.
like vector[A], but instead consuming all bytes on decoding will try to consume all bytes that match for A
and will leave last bytes that did not match as remainder. May encode to Vector.empty if A
did not match at all.
Codec for A
Like VectorV, but the items are delimited by Delimiter
.
Like VectorV, but the items are delimited by Delimiter
.
Last item will not be terminated by delimiter
if set to true, first element will start with delimiter
Performs Xor operation of codec
with or