Crate jeb

Crate jeb 

Source
Expand description

Incomplete and incorrect, vague ideas and hallucinations. At least for now.


§jeb

JSON Entity Bag?

Just Encode Bytes?

Joined Escaped Binary?

Semitranslucent Binary Encodings?

§License

Copyright Jeremy Banks and contributors.

Licensed under either of:

at your option.

§Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Re-exports§

pub use crate::byte_ranges::*;
pub use crate::const_checked::*;
pub use crate::errors::*;

Modules§

byte_ranges
const_checked
errors
model
nodes
shell_tokenizer
POSIX Shell Argument Tokenizer

Macros§

noop

Structs§

Decoder
Encoder

Constants§

BASE_85
This encoding uses base 85 for binary data.
BLOCK_BYTES_4
This encoding works in 4-byte (32-bit) blocks.
BLOCK_BYTES_BY_DIGITS
The number of bytes encoded by a given number of digits.
BLOCK_DIGITS_5
This encoding represents each block with 5 digits.
BLOCK_DIGITS_BY_BYTES
The number of blocks required to encode a given number of bytes.
MAX_RAW_BLOCKS
This encoding’s number of raw blocks in a raw chunk is limited by the maximum raw prefix size value that can fit in the initial block with RAW_PREFIX.
MAX_RAW_BYTES
This encoding allows maximum of roughly 200 MiB of raw data per raw chunk.
MAX_TEXT_SIZE
RAW_PADDING
The default padding byte repeated after raw data to align following blocks.
RAW_PREFIX
The prefix byte preceding raw data.
TARGET_LINE_SIZE_BYTES
When this encoding is split into 80 digit lines, each line contains 64 bytes of data, which has a good chance of some alignment with binary data.
TARGET_LINE_SIZE_DIGITS
When this encoding is used to convert binary data into line of text, our implementation limits each line to 80 digits.
TARGET_RAW_BLOCKS
We encode a maximum of 16 Ki blocks per raw chunk.
TARGET_RAW_BYTES
We encode a maximum of 64 KiB of raw data per raw chunk.
Z85_ALPHABET
Z85_DECODE

Functions§

decode
decode_z85_block
Decodes a 5-digit Z85 block into a 4-byte (32-bit) binary block.
decode_z85_block_or_panic
Decodes a Z85 block, panicking on error.
decoded_z85_length
encode
encode_jeb85
encode_z85
encode_z85_block
Encodes a 4-byte (32-bit) binary block into a 5-digit Z85 block.
encoded_z85_length