Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Nullus157/bs58-rs
/ functions
Functions
54 in github.com/Nullus157/bs58-rs
⨍
Functions
54
◇
Types & classes
12
↓ 9 callers
Method
onto
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 callers
Function
decode
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 callers
Function
encode
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 callers
Function
decode_into
(input: &[u8], output: &mut [u8], alpha: &Alphabet)
src/decode.rs:351
↓ 3 callers
Function
encode_into
(input: I, output: &mut [u8], alpha: &Alphabet)
src/encode.rs:434
↓ 3 callers
Method
into_vec
(self)
src/encode.rs:330
↓ 3 callers
Method
with_check
(self)
src/encode.rs:259
↓ 2 callers
Method
into_string
(self)
src/encode.rs:315
↓ 1 callers
Method
as_alphabet
(&self)
cli/src/main.rs:19
↓ 1 callers
Function
decode_cb58_into
( input: &[u8], output: &mut [u8], alpha: &Alphabet, expected_ver: Option<u8>, )
src/decode.rs:439
↓ 1 callers
Function
decode_check_into
( input: &[u8], output: &mut [u8], alpha: &Alphabet, expected_ver: Option<u8>, )
src/decode.rs:393
↓ 1 callers
Method
decode_with
( &mut self, max_len: usize, f: impl for<'a> FnOnce(&'a mut [u8]) -> Result<usize>,
src/decode.rs:89
↓ 1 callers
Function
encode_cb58_into
( input: &[u8], output: &mut [u8], alpha: &Alphabet, version: Option<u8>, )
src/encode.rs:498
↓ 1 callers
Function
encode_check_into
( input: &[u8], output: &mut [u8], alpha: &Alphabet, version: Option<u8>, )
src/encode.rs:473
↓ 1 callers
Method
encode_with
( &mut self, max_len: usize, f: impl for<'a> FnOnce(&'a mut [u8]) -> Result<usize>,
src/encode.rs:47
↓ 1 callers
Function
max_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 callers
Method
onto
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 callers
Method
with_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 callers
Method
with_check_version
(self, expected_ver: u8)
src/encode.rs:280
Function
append
()
tests/encode.rs:129
Function
append
()
tests/decode.rs:112
Method
as_cb58
(self, expected_ver: Option<u8>)
src/encode.rs:301
Method
as_cb58
(self, expected_ver: Option<u8>)
src/decode.rs:275
Function
bench_decode
(c: &mut Criterion)
benches/decode.rs:52
Function
bench_encode
(c: &mut Criterion)
benches/encode.rs:27
Method
drop
(&mut self)
src/encode.rs:172
Function
encode_stress_test
()
tests/encode.rs:172
Method
fmt
(&self, f: &mut fmt::Formatter)
src/encode.rs:525
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/alphabet.rs:164
Method
fmt
(&self, f: &mut fmt::Formatter)
src/decode.rs:487
Method
from_input
Setup encoder for the given string using default prepared alphabet.
src/encode.rs:219
Method
from_input
Setup decoder for the given string using default prepared alphabet.
src/decode.rs:208
Method
from_str
(s: &str)
cli/src/main.rs:33
Method
into_vec
(self)
src/decode.rs:295
Function
main
()
cli/src/main.rs:69
Function
main
()
examples/encode.rs:3
Function
main
()
examples/decode.rs:3
Method
new
Setup encoder for the given string using the given alphabet. Preferably use [`bs58::encode`](crate::encode()) instead of this directly.
src/encode.rs:210
Method
new
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
Method
new
Setup decoder for the given string using the given alphabet. Preferably use [`bs58::decode`](crate::decode()) instead of this directly.
src/decode.rs:199
Method
new_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
Function
no_append
()
tests/decode.rs:119
Function
test_buffer_too_small
()
tests/encode.rs:137
Function
test_buffer_too_small_check
()
tests/encode.rs:153
Function
test_check_ver_failed
()
tests/decode.rs:102
Function
test_decode
()
tests/decode.rs:7
Function
test_decode_check
()
tests/decode.rs:84
Function
test_decode_invalid_char
()
tests/decode.rs:71
Function
test_decode_small_buffer_err
()
tests/decode.rs:62
Function
test_encode
()
tests/encode.rs:6
Function
test_encode_check
()
tests/encode.rs:85
Function
test_new_unwrap_does_panic
()
src/alphabet.rs:206
Method
with_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
Method
with_check
(self, expected_ver: Option<u8>)
src/decode.rs:251