MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / get_slice

Function get_slice

rust/tests/data_buffer.rs:7–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5
6#[test]
7fn get_slice() {
8 let data = DataBuffer::new(DUMMY_DATA_0).unwrap();
9 let slice = data.get_slice(9, 10).unwrap();
10 assert_eq!(slice.get_data(), &DUMMY_DATA_0[9..19]);
11}
12
13#[test]
14fn set_len_write() {

Callers

nothing calls this directly

Calls 1

get_sliceMethod · 0.80

Tested by

no test coverage detected