Method: FFI::Libfuse::FuseOperations#write

Defined in:
lib/ffi/libfuse/fuse_operations.rb

#write(path, data, size, offset, fuse_file_info) ⇒ Integer

This method is abstract.

Write data to an open file

Parameters:

  • path (String)
  • data (FFI::Pointer)
  • size (Integer)
  • offset (Integer)
  • fuse_file_info (FuseFileInfo)

Returns:

  • (Integer)

    Write should return exactly the number of bytes requested except on error. An exception to this is when the 'direct_io' mount option is specified (see read operation).



# File 'lib/ffi/libfuse/fuse_operations.rb', line 331