Sha256: 2c46faefaa9df5e75e9cb521b3367a11935a1551b86a6bc317e78b7de665769b

Contents?: true

Size: 937 Bytes

Versions: 4

Compression:

Stored size: 937 Bytes

Contents

module GDAL
  module EnvironmentMethods
    # @return [Fixnum] The maximum cache memory.
    def cache_max
      FFI::GDAL.GDALGetCacheMax
    end

    # @param bytes [Fixnum]
    def cache_max=(bytes)
      FFI::GDAL.GDALSetCacheMax(bytes)
    end

    # @return [Fixnum] The maximum cache memory.
    def cache_max64
      FFI::GDAL.GDALGetCacheMax64
    end

    # @param bytes [Fixnum]
    def cache_max64=(bytes)
      FFI::GDAL.GDALSetCacheMax64(bytes)
    end

    # @return [Fixnum] The amount of used cache memory.
    def cache_used
      FFI::GDAL.GDALGetCacheUsed
    end

    # @return [Fixnum] The amount of used cache memory.
    def cache_used64
      FFI::GDAL.GDALGetCacheUsed64
    end

    # @return [Boolean]
    def flush_cache_block
      FFI::GDAL.GDALFlushCacheBlock
    end

    # @param file_name [String]
    def dump_open_datasets(file_name)
      FFI::GDAL.GDALDumpOpenDatasets(file_name)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ffi-gdal-1.0.0.beta5 lib/gdal/environment_methods.rb
ffi-gdal-1.0.0.beta4 lib/gdal/environment_methods.rb
ffi-gdal-1.0.0.beta3 lib/gdal/environment_methods.rb
ffi-gdal-1.0.0.beta1 lib/gdal/environment_methods.rb