pub struct TxDeltaWindow { /* private fields */ }Expand description
TxDelta window with RAII cleanup
Implementations§
Source§impl TxDeltaWindow
impl TxDeltaWindow
Sourcepub fn as_mut_ptr(&mut self) -> *mut svn_txdelta_window_t
pub fn as_mut_ptr(&mut self) -> *mut svn_txdelta_window_t
Get the mutable raw pointer to the window (use with caution)
Sourcepub fn as_ptr(&self) -> *const svn_txdelta_window_t
pub fn as_ptr(&self) -> *const svn_txdelta_window_t
Get the raw pointer to the window.
Sourcepub fn from_parts(
sview_offset: u64,
sview_len: u64,
tview_len: u64,
src_ops: i32,
ops: &[(i32, u64, u64)],
new_data: &[u8],
) -> Self
pub fn from_parts( sview_offset: u64, sview_len: u64, tview_len: u64, src_ops: i32, ops: &[(i32, u64, u64)], new_data: &[u8], ) -> Self
Creates a TxDelta window from constituent parts.
§Arguments
sview_offset- Source view offsetsview_len- Source view lengthtview_len- Target view lengthsrc_ops- Number of source operations (usually ignored)ops- Delta operations as (action_code, offset, length) tuplesnew_data- New data buffer
Sourcepub fn sview_len(&self) -> apr_size_t
pub fn sview_len(&self) -> apr_size_t
Gets the source view length.
Sourcepub fn tview_len(&self) -> apr_size_t
pub fn tview_len(&self) -> apr_size_t
Gets the target view length.
Sourcepub fn sview_offset(&self) -> FileSize
pub fn sview_offset(&self) -> FileSize
Gets the source view offset.
Sourcepub fn ops(&self) -> Vec<(i32, u64, u64)>
pub fn ops(&self) -> Vec<(i32, u64, u64)>
Gets the delta operations as (action_code, offset, length) tuples.
Trait Implementations§
Source§impl Default for TxDeltaWindow
impl Default for TxDeltaWindow
Auto Trait Implementations§
impl Freeze for TxDeltaWindow
impl RefUnwindSafe for TxDeltaWindow
impl !Send for TxDeltaWindow
impl !Sync for TxDeltaWindow
impl Unpin for TxDeltaWindow
impl UnsafeUnpin for TxDeltaWindow
impl UnwindSafe for TxDeltaWindow
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more