fn write_at(&mut self, offset: u64, buf: &[u8]) -> LxResult<usize> {
        if !self.flags.writable() {
            return Err(LxError::EBADF);
        }
        let len = self.inode.write_at(offset as usize, buf)?;
        Ok(len)
    }
/// write to file at given offset
write to file at given offset
write to file at given offset
fn write_at(&mut self, offset: u64, buf: &[u8]) -> LxResult<usize> {
        if !self.flags.writable() {
            return Err(LxError::EBADF);
        }
        let len = self.inode.write_at(offset as usize, buf)?;
        Ok(len)
    }
fn write_at ( & mut self , offset : u64 , buf : & [ u8 ] ) -> LxResult < usize > { if ! self . flags . writable ( ) { return Err ( LxError :: EBADF ) ; } let len = self . inode . write_at ( offset as usize , buf ) ? ; Ok ( len ) }
write to file at given offset
write to file at given offset
&mut self
offset
u64
buf
&[u8]
&mut self
offset
u64
buf
&[u8]