MCPcopy Create free account

hub / github.com/Nullus157/bs58-rs / functions

Functions54 in github.com/Nullus157/bs58-rs

↓ 9 callersMethodonto
Encode onto the given buffer. Returns the length written onto the buffer. If the buffer is resizeable it will be extended and the new data will be w
src/encode.rs:401
↓ 6 callersFunctiondecode
Setup decoder for the given string using the [default alphabet][Alphabet::DEFAULT]. # Examples ## Basic example ```rust assert_eq!( vec![0x04, 0x30
src/lib.rs:170
↓ 6 callersFunctionencode
Setup encoder for the given bytes using the [default alphabet][Alphabet::DEFAULT]. # Examples ## Basic example ```rust let input = [0x04, 0x30, 0x5
src/lib.rs:219
↓ 3 callersFunctiondecode_into
(input: &[u8], output: &mut [u8], alpha: &Alphabet)
src/decode.rs:351
↓ 3 callersFunctionencode_into
(input: I, output: &mut [u8], alpha: &Alphabet)
src/encode.rs:434
↓ 3 callersMethodinto_vec
(self)
src/encode.rs:330
↓ 3 callersMethodwith_check
(self)
src/encode.rs:259
↓ 2 callersMethodinto_string
(self)
src/encode.rs:315
↓ 1 callersMethodas_alphabet
(&self)
cli/src/main.rs:19
↓ 1 callersFunctiondecode_cb58_into
( input: &[u8], output: &mut [u8], alpha: &Alphabet, expected_ver: Option<u8>, )
src/decode.rs:439
↓ 1 callersFunctiondecode_check_into
( input: &[u8], output: &mut [u8], alpha: &Alphabet, expected_ver: Option<u8>, )
src/decode.rs:393
↓ 1 callersMethoddecode_with
( &mut self, max_len: usize, f: impl for<'a> FnOnce(&'a mut [u8]) -> Result<usize>,
src/decode.rs:89
↓ 1 callersFunctionencode_cb58_into
( input: &[u8], output: &mut [u8], alpha: &Alphabet, version: Option<u8>, )
src/encode.rs:498
↓ 1 callersFunctionencode_check_into
( input: &[u8], output: &mut [u8], alpha: &Alphabet, version: Option<u8>, )
src/encode.rs:473
↓ 1 callersMethodencode_with
( &mut self, max_len: usize, f: impl for<'a> FnOnce(&'a mut [u8]) -> Result<usize>,
src/encode.rs:47
↓ 1 callersFunctionmax_encoded_len
Return maximum possible encoded length of a buffer with given length. Assumes that the `len` already includes version and checksum bytes if those are
src/encode.rs:429
↓ 1 callersMethodonto
Decode into the given buffer. Returns the length written into the buffer. If the buffer is resizeable it will be extended and the new data will be w
src/decode.rs:333
↓ 1 callersMethodwith_alphabet
Change the alphabet that will be used for encoding. # Examples ```rust let input = [0x60, 0x65, 0xe7, 0x9b, 0xba, 0x2f, 0x78]; assert_eq!( "he11owor
src/encode.rs:239
↓ 1 callersMethodwith_check_version
(self, expected_ver: u8)
src/encode.rs:280
Functionappend
()
tests/encode.rs:129
Functionappend
()
tests/decode.rs:112
Methodas_cb58
(self, expected_ver: Option<u8>)
src/encode.rs:301
Methodas_cb58
(self, expected_ver: Option<u8>)
src/decode.rs:275
Functionbench_decode
(c: &mut Criterion)
benches/decode.rs:52
Functionbench_encode
(c: &mut Criterion)
benches/encode.rs:27
Methoddrop
(&mut self)
src/encode.rs:172
Functionencode_stress_test
()
tests/encode.rs:172
Methodfmt
(&self, f: &mut fmt::Formatter)
src/encode.rs:525
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
src/alphabet.rs:164
Methodfmt
(&self, f: &mut fmt::Formatter)
src/decode.rs:487
Methodfrom_input
Setup encoder for the given string using default prepared alphabet.
src/encode.rs:219
Methodfrom_input
Setup decoder for the given string using default prepared alphabet.
src/decode.rs:208
Methodfrom_str
(s: &str)
cli/src/main.rs:33
Methodinto_vec
(self)
src/decode.rs:295
Functionmain
()
cli/src/main.rs:69
Functionmain
()
examples/encode.rs:3
Functionmain
()
examples/decode.rs:3
Methodnew
Setup encoder for the given string using the given alphabet. Preferably use [`bs58::encode`](crate::encode()) instead of this directly.
src/encode.rs:210
Methodnew
Create prepared alphabet, checks that the alphabet is pure ASCII and that there are no duplicate characters, which would result in inconsistent encodi
src/alphabet.rs:102
Methodnew
Setup decoder for the given string using the given alphabet. Preferably use [`bs58::decode`](crate::decode()) instead of this directly.
src/decode.rs:199
Methodnew_unwrap
Same as [`Self::new`], but gives a panic instead of an [`Err`] on bad input. Intended to support usage in `const` context until [`Result::unwrap`] is
src/alphabet.rs:153
Functionno_append
()
tests/decode.rs:119
Functiontest_buffer_too_small
()
tests/encode.rs:137
Functiontest_buffer_too_small_check
()
tests/encode.rs:153
Functiontest_check_ver_failed
()
tests/decode.rs:102
Functiontest_decode
()
tests/decode.rs:7
Functiontest_decode_check
()
tests/decode.rs:84
Functiontest_decode_invalid_char
()
tests/decode.rs:71
Functiontest_decode_small_buffer_err
()
tests/decode.rs:62
Functiontest_encode
()
tests/encode.rs:6
Functiontest_encode_check
()
tests/encode.rs:85
Functiontest_new_unwrap_does_panic
()
src/alphabet.rs:206
Methodwith_alphabet
Change the alphabet that will be used for decoding. # Examples ```rust assert_eq!( vec![0x60, 0x65, 0xe7, 0x9b, 0xba, 0x2f, 0x78], bs58::decode("he1
src/decode.rs:228
Methodwith_check
(self, expected_ver: Option<u8>)
src/decode.rs:251