Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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]
7
fn 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]
14
fn set_len_write() {
Callers
nothing calls this directly
Calls
1
get_slice
Method · 0.80
Tested by
no test coverage detected