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

Function byte_width

plugins/svd/src/mapper.rs:25–31  ·  view source on GitHub ↗

Byte aligned width for bit-width

(bit_width: u32)

Source from the content-addressed store, hash-verified

23
24/// Byte aligned width for bit-width
25pub fn byte_width(bit_width: u32) -> u32 {
26 if byte_aligned(bit_width) {
27 bit_width / 8
28 } else {
29 (bit_width / 8) + 1
30 }
31}
32
33#[derive(Clone, Debug)]
34pub struct AddressBlockMemoryInfo {

Callers 3

single_register_typeMethod · 0.85
single_field_int_typeMethod · 0.85

Calls 1

byte_alignedFunction · 0.85

Tested by

no test coverage detected