pub fn read_obj<T>(&self, pos: isize, obj: &mut T) -> Result<(), RTTError> {
        let size = mem::size_of::<T>();

        return if size != rttbase_device_read(self.handle.0, pos, obj as *mut T as *mut CVoid, size)
        {
            Err(RTTError::DeviceReadFailed)
        } else {
            Ok(())
        };
    }
/// You can receive an object by this function
///
/// # Note:
/// this function will not deal with big/little endian problem
You can receive an object by this function
You can receive an object by this function
pub fn read_obj<T>(&self, pos: isize, obj: &mut T) -> Result<(), RTTError> {
        let size = mem::size_of::<T>();
        return if size != rttbase_device_read(self.handle.0, pos, obj as *mut T as *mut CVoid, size)
        {
            Err(RTTError::DeviceReadFailed)
        } else {
            Ok(())
        };
    }
pub fn read_obj < T > ( & self , pos : isize , obj : & mut T ) -> Result < ( ) , RTTError > { let size = mem :: size_of :: < T > ( ) ; return if size != rttbase_device_read ( self . handle . 0 , pos , obj as * mut T as * mut CVoid , size ) { Err ( RTTError :: DeviceReadFailed ) } else { Ok ( ( ) ) } ; }
You can receive an object by this function
You can receive an object by this function
&self
pos
isize
obj
&mut T
&self
pos
isize
obj
&mut T
note:
this function will not deal with big/little endian problem
this function will not deal with big / little endian problem