Sha256: 07b4c4747baaec47232ced84b5f223a480ca85b6c0fd8e69f91f4eb82eab7137
Contents?: true
Size: 1.04 KB
Versions: 2
Compression:
Stored size: 1.04 KB
Contents
module GDAL class DataType # The size in bits. # # @param gdal_data_type [FFI::GDAL::GDALDataType] # @return [Fixnum] def self.size(gdal_data_type) FFI::GDAL.GDALGetDataTypeSize(gdal_data_type) end # @param gdal_data_type [FFI::GDAL::GDALDataType] # @return [Fixnum] def self.complex?(gdal_data_type) FFI::GDAL.GDALDataTypeIsComplex(gdal_data_type) end # @param gdal_data_type [FFI::GDAL::GDALDataType] # @return [String] def self.name(gdal_data_type) FFI::GDAL.GDALGetDataTypeName(gdal_data_type) end # The data type's symbolic name. # # @param name [String] # @return [FFI::GDAL::GDALDataType] def self.by_name(name) FFI::GDAL.GDALGetDataTypeByName(name) end # @param gdal_data_type1 [FFI::GDAL::GDALDataType] # @param gdal_data_type2 [FFI::GDAL::GDALDataType] # @return [FFI::GDAL::GDALDataType] def self.union(gdal_data_type1, gdal_data_type2) FFI::GDAL.GDALDataTypeUnion(gdal_data_type1, gdal_data_type2) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ffi-gdal-1.0.0.beta3 | lib/gdal/data_type.rb |
ffi-gdal-1.0.0.beta1 | lib/gdal/data_type.rb |