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:
- Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (http://opensource.org/licenses/MIT)
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§
Structs§
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