module Archive::C
Constants
- DATA_BUFFER_SIZE
- EOF
- FAILED
- FATAL
- OK
- RETRY
- WARN
Public Class Methods
archive_write_set_compression(archive, compression)
click to toggle source
# File lib/ffi-libarchive/archive.rb, line 97 def self.archive_write_set_compression(archive, compression) case compression when String archive_write_set_compression_program archive, compression when COMPRESSION_BZIP2 archive_write_set_compression_bzip2 archive when COMPRESSION_GZIP archive_write_set_compression_gzip archive when COMPRESSION_LZMA archive_write_set_compression_lzma archive when COMPRESSION_XZ archive_write_set_compression_xz archive when COMPRESSION_COMPRESS archive_write_set_compression_compress archive when COMPRESSION_NONE archive_write_set_compression_none archive else raise "Unknown compression type: #{compression}" end end
attach_function_maybe(*args)
click to toggle source
# File lib/ffi-libarchive/archive.rb, line 5 def self.attach_function_maybe(*args) attach_function(*args) rescue FFI::NotFoundError # rubocop:disable Lint/HandleExceptions end