Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/andylokandy/byte
/ functions
Functions
38 in github.com/andylokandy/byte
⨍
Functions
38
◇
Types & classes
10
↓ 10 callers
Function
check_len
(bytes: &[u8], len: usize)
src/lib.rs:190
↓ 7 callers
Method
write
Write value into byte slice by default context # Example ``` use byte::*; let mut bytes = [0u8; 2]; bytes.write(&mut 0, false).unwrap(); bytes.wri
src/lib.rs:341
↓ 4 callers
Method
write_with
(&mut self, offset: &mut usize, t: T, ctx: Ctx)
src/lib.rs:403
↓ 2 callers
Method
read
Read value from byte slice by default context # Example ``` use byte::*; let bytes: &[u8] = &[0, 1]; let bool1: bool = bytes.read(&mut 0).unwrap()
src/lib.rs:279
↓ 2 callers
Method
read_with
(&'a self, offset: &mut usize, ctx: Ctx)
src/lib.rs:372
↓ 1 callers
Function
example_read_hardcode
(bytes: &'a [u8])
benches/lib.rs:84
↓ 1 callers
Function
example_write_hardcode
(bytes: &mut [u8], header: Header)
benches/lib.rs:102
↓ 1 callers
Method
read_iter
(&'a self, offset: &'i mut usize, ctx: Ctx)
src/lib.rs:391
Function
bench_byteorder
(b: &mut test::Bencher)
benches/lib.rs:13
Function
bench_example_read
(b: &mut test::Bencher)
benches/lib.rs:45
Function
bench_example_read_hardcode
(b: &mut test::Bencher)
benches/lib.rs:65
Function
bench_example_write
(b: &mut test::Bencher)
benches/lib.rs:52
Function
bench_example_write_hardcode
(b: &mut test::Bencher)
benches/lib.rs:72
Function
bench_read_num
(b: &mut test::Bencher)
benches/lib.rs:19
Function
bench_str
(b: &mut test::Bencher)
benches/lib.rs:25
Function
bench_str_hardcode
(b: &mut test::Bencher)
benches/lib.rs:38
Method
default
()
src/ctx/str.rs:42
Method
default
()
src/ctx/num.rs:33
Method
next
(&mut self)
src/lib.rs:461
Method
size_hint
(&self)
src/lib.rs:471
Function
test_api
()
tests/lib.rs:265
Function
test_bool
()
tests/lib.rs:167
Function
test_bytes
()
tests/lib.rs:100
Function
test_bytes_pattern
()
tests/lib.rs:115
Function
test_iter
()
tests/lib.rs:182
Function
test_str
()
tests/lib.rs:11
Function
test_str_delimitor
()
tests/lib.rs:33
Function
test_str_write
()
tests/lib.rs:88
Method
try_read
(bytes: &'a [u8], endian: Endian)
benches/lib.rs:121
Method
try_read
(bytes: &'a [u8], ctx: Str)
src/ctx/str.rs:58
Method
try_read
(bytes: &'a [u8], ctx: Bytes)
src/ctx/bytes.rs:38
Method
try_read
(bytes: &'a [u8], _ctx: ())
src/ctx/bool.rs:5
Method
try_read
(bytes: &'a [u8], endian: Endian)
tests/lib.rs:239
Method
try_write
(self, bytes: &mut [u8], endian: Endian)
benches/lib.rs:133
Method
try_write
(self, bytes: &mut [u8], _ctx: ())
src/ctx/str.rs:92
Method
try_write
(self, bytes: &mut [u8], _ctx: ())
src/ctx/bytes.rs:75
Method
try_write
(self, bytes: &mut [u8], _ctx: ())
src/ctx/bool.rs:14
Method
try_write
(self, bytes: &mut [u8], endian: Endian)
tests/lib.rs:253