Method: FFI::Libfuse::FuseOperations#write_buf

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

#write_buf(path, buf, offset, fuse_file_info) ⇒ Integer

This method is abstract.

Write contents of buffer to an open file

Similar to the #write method, but data is supplied in a generic buffer. Use FFI::Libfuse::FuseBufVec#copy_to_fd to copy data to an open file descriptor, or FFI::Libfuse::FuseBufVec#copy_to_str to extract string data from the buffer

Parameters:

Returns:

  • (Integer)

    the number of bytes written or -ve errno



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