We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
StructureBuilder::current_width
1 parent 1541ac1 commit 123bb13Copy full SHA for 123bb13
rust/src/types.rs
@@ -1563,6 +1563,14 @@ impl StructureBuilder {
1563
unsafe { BNRemoveStructureBuilderMember(self.handle, index) };
1564
self
1565
}
1566
+
1567
+ // TODO: We should add BNGetStructureBuilderAlignedWidth
1568
+ /// Gets the current **unaligned** width of the structure.
1569
+ ///
1570
+ /// This cannot be used to accurately get the width of a non-packed structure.
1571
+ pub fn current_width(&self) -> u64 {
1572
+ unsafe { BNGetStructureBuilderWidth(self.handle) }
1573
+ }
1574
1575
1576
impl From<&Structure> for StructureBuilder {
0 commit comments