pub type ByteChangedCallback = Option<unsafe extern "C" fn(context: *mut c_void)>;
callback that is executed when byte buffer is changed