pub fn read_bytes_kernel(
        &mut self,
        dst: &mut [u8],
        off: u32,
        ctx: &KernelCtx<'_, '_>,
    ) -> usize {
        self.read_internal(
            off,
            dst.len() as u32,
            |off, src, _| {
                dst[off as usize..off as usize + src.len()].clone_from_slice(src);
                Ok(())
            },
            ctx,
        )
        .expect("read: should never fail")
    }
/// Copy data into `dst` from the content of inode at offset `off`.
/// Return the number of bytes copied.
Copy data into `dst` from the content of inode at offset `off`.
Return the number of bytes copied.
Copy data into ` dst ` from the content of inode at offset ` off ` . Return the number of bytes copied .
pub fn read_bytes_kernel(
        &mut self,
        dst: &mut [u8],
        off: u32,
        ctx: &KernelCtx<'_, '_>,
    ) -> usize {
        self.read_internal(
            off,
            dst.len() as u32,
            |off, src, _| {
                dst[off as usize..off as usize + src.len()].clone_from_slice(src);
                Ok(())
            },
            ctx,
        )
        .expect("read: should never fail")
    }
pub fn read_bytes_kernel ( & mut self , dst : & mut [ u8 ] , off : u32 , ctx : & KernelCtx < ' _ , ' _ > , ) -> usize { self . read_internal ( off , dst . len ( ) as u32 , | off , src , _ | { dst [ off as usize .. off as usize + src . len ( ) ] . clone_from_slice ( src ) ; Ok ( ( ) ) } , ctx , ) . expect ( " " ) }
Copy data into `dst` from the content of inode at offset `off`.
Copy data into ` dst ` from the content of inode at offset ` off ` .
&mut self
dst
&mut [u8]
off
u32
ctx
&KernelCtx<'_, '_>
&mut self
dst
&mut [u8]
off
u32
ctx
&KernelCtx<'_, '_>