Module: Snappy::FFI::Lib

Extended by:
FFI::Library
Defined in:
lib/snappy_ffi.rb

Overview

:nodoc

Defined Under Namespace

Classes: SizeT

Constant Summary collapse

ExportSets =

What should we look for?

[
  {
    :description => "g++ 4",
    :max_compressed_length => '_ZN6snappy19MaxCompressedLengthEm',
    :get_uncompressed_length => '_ZN6snappy21GetUncompressedLengthEPKcmPm',
    :raw_compress => '_ZN6snappy11RawCompressEPKcmPcPm',
    :raw_uncompress => '_ZN6snappy13RawUncompressEPKcmPc'
  }
]
ChosenExportSet =
ExportSets.find { |set|
  libsnappy.find_function(set[:max_compressed_length])
}