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

Method set_len

rust/src/data_buffer.rs:69–71  ·  view source on GitHub ↗

change the size of the allocated data, if new size is bigger data is need to be initialized

(&mut self, len: usize)

Source from the content-addressed store, hash-verified

67 /// change the size of the allocated data, if new size is bigger data is
68 /// need to be initialized
69 pub unsafe fn set_len(&mut self, len: usize) {
70 unsafe { BNSetDataBufferLength(self.0, len) }
71 }
72
73 /// set the size to 0
74 pub fn clear(&self) {

Callers 1

set_len_writeFunction · 0.80

Calls

no outgoing calls

Tested by 1

set_len_writeFunction · 0.64