Module: Archive::Utils::LibC

Extended by:
FFI::Library
Defined in:
lib/ffi_libarchive/utils.rb

Instance Method Summary collapse

Instance Method Details

#mbstowcs(dest, src, max) ⇒ Integer

Convert multibyte string to wide-character string

Parameters:

  • dest (FFI::Pointer)

    of :wchar_t*

  • src (String)
  • max (Integer)

    Maximum number of :wchar_t characters to write to dest

Returns:

  • (Integer)

    Number of wide characters written to dest (excluding null-terminated), or -1 if error



17
# File 'lib/ffi_libarchive/utils.rb', line 17

attach_function :mbstowcs, [:pointer, :string, :size_t], :size_t