MCPcopy Index your code

hub / github.com/andylokandy/byte / functions

Functions38 in github.com/andylokandy/byte

↓ 10 callersFunctioncheck_len
(bytes: &[u8], len: usize)
src/lib.rs:190
↓ 7 callersMethodwrite
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 callersMethodwrite_with
(&mut self, offset: &mut usize, t: T, ctx: Ctx)
src/lib.rs:403
↓ 2 callersMethodread
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 callersMethodread_with
(&'a self, offset: &mut usize, ctx: Ctx)
src/lib.rs:372
↓ 1 callersFunctionexample_read_hardcode
(bytes: &'a [u8])
benches/lib.rs:84
↓ 1 callersFunctionexample_write_hardcode
(bytes: &mut [u8], header: Header)
benches/lib.rs:102
↓ 1 callersMethodread_iter
(&'a self, offset: &'i mut usize, ctx: Ctx)
src/lib.rs:391
Functionbench_byteorder
(b: &mut test::Bencher)
benches/lib.rs:13
Functionbench_example_read
(b: &mut test::Bencher)
benches/lib.rs:45
Functionbench_example_read_hardcode
(b: &mut test::Bencher)
benches/lib.rs:65
Functionbench_example_write
(b: &mut test::Bencher)
benches/lib.rs:52
Functionbench_example_write_hardcode
(b: &mut test::Bencher)
benches/lib.rs:72
Functionbench_read_num
(b: &mut test::Bencher)
benches/lib.rs:19
Functionbench_str
(b: &mut test::Bencher)
benches/lib.rs:25
Functionbench_str_hardcode
(b: &mut test::Bencher)
benches/lib.rs:38
Methoddefault
()
src/ctx/str.rs:42
Methoddefault
()
src/ctx/num.rs:33
Methodnext
(&mut self)
src/lib.rs:461
Methodsize_hint
(&self)
src/lib.rs:471
Functiontest_api
()
tests/lib.rs:265
Functiontest_bool
()
tests/lib.rs:167
Functiontest_bytes
()
tests/lib.rs:100
Functiontest_bytes_pattern
()
tests/lib.rs:115
Functiontest_iter
()
tests/lib.rs:182
Functiontest_str
()
tests/lib.rs:11
Functiontest_str_delimitor
()
tests/lib.rs:33
Functiontest_str_write
()
tests/lib.rs:88
Methodtry_read
(bytes: &'a [u8], endian: Endian)
benches/lib.rs:121
Methodtry_read
(bytes: &'a [u8], ctx: Str)
src/ctx/str.rs:58
Methodtry_read
(bytes: &'a [u8], ctx: Bytes)
src/ctx/bytes.rs:38
Methodtry_read
(bytes: &'a [u8], _ctx: ())
src/ctx/bool.rs:5
Methodtry_read
(bytes: &'a [u8], endian: Endian)
tests/lib.rs:239
Methodtry_write
(self, bytes: &mut [u8], endian: Endian)
benches/lib.rs:133
Methodtry_write
(self, bytes: &mut [u8], _ctx: ())
src/ctx/str.rs:92
Methodtry_write
(self, bytes: &mut [u8], _ctx: ())
src/ctx/bytes.rs:75
Methodtry_write
(self, bytes: &mut [u8], _ctx: ())
src/ctx/bool.rs:14
Methodtry_write
(self, bytes: &mut [u8], endian: Endian)
tests/lib.rs:253