pub fn update(&mut self, ptr: ValuePtr, value: &[u8], position: usize) -> Result<(), HashStoreError> {
        let _timer = Timer::new(&self.stats[HashStoreStats::WriteTime as usize]);

        update_value(&mut self.rw_file, ptr, value, position + mem::size_of::<header::Header>())?;
        Ok(())
    }
/// Updates part of a value
///
/// The concurrency model only allows updating each byte of a value to a
/// single deterministic value. The caller must ensure this.
///
/// Specifically, the caller must ensure that if it changes byte N to X, this
/// byte will never be changed to anything else than X, neither by the caller
/// not by any other process
///
/// The caller must also ensure that the update is within the bounds of the value
Updates part of a value
The concurrency model only allows updating each byte of a value to a
single deterministic value. The caller must ensure this.

Specifically, the caller must ensure that if it changes byte N to X, this
byte will never be changed to anything else than X, neither by the caller
not by any other process

The caller must also ensure that the update is within the bounds of the value
Updates part of a value The concurrency model only allows updating each byte of a value to a single deterministic value . The caller must ensure this . Specifically the caller must ensure that if it changes byte N to X this byte will never be changed to anything else than X neither by the caller not by any other process The caller must also ensure that the update is within the bounds of the value
pub fn update(&mut self, ptr: ValuePtr, value: &[u8], position: usize) -> Result<(), HashStoreError> {
        let _timer = Timer::new(&self.stats[HashStoreStats::WriteTime as usize]);
        update_value(&mut self.rw_file, ptr, value, position + mem::size_of::<header::Header>())?;
        Ok(())
    }
pub fn update ( & mut self , ptr : ValuePtr , value : & [ u8 ] , position : usize ) -> Result < ( ) , HashStoreError > { let _timer = Timer :: new ( & self . stats [ HashStoreStats :: WriteTime as usize ] ) ; update_value ( & mut self . rw_file , ptr , value , position + mem :: size_of :: < header :: Header > ( ) ) ? ; Ok ( ( ) ) }
Updates part of a value
The concurrency model only allows updating each byte of a value to a
single deterministic value.
Updates part of a value The concurrency model only allows updating each byte of a value to a single deterministic value .
&mut self
ptr
ValuePtr
value
&[u8]
position
usize
&mut self
ptr
ValuePtr
value
&[u8]
position
usize