patch_chunk

Function patch_chunk 

Source
pub fn patch_chunk<T, I, C>(
    decoded_values: &mut [T],
    patches_indices: &[I],
    patches_values: &[T],
    patches_offset: usize,
    chunk_offsets_slice: &[C],
    chunk_idx: usize,
    base_offset: usize,
    offset_within_chunk: usize,
)
Expand description

Patches a chunk of decoded values.

ยงArguments

  • decoded_values - Mutable slice of decoded values to be patched
  • patches_indices - Indices indicating which positions to patch
  • patches_values - Values to apply at the patched indices
  • patches_offset - Offset to subtract from patch indices
  • chunk_offsets_slice - Slice containing offsets for each chunk
  • chunk_idx - Index of the chunk to patch
  • base_offset - Base offset from the first chunk
  • offset_within_chunk - Offset within chunk for sliced patches