Sha256: afa4e3c1402ae45ff4e355b092761c00e9534360e582bdd3b1831d3e52e1fd17
Contents?: true
Size: 349 Bytes
Versions: 3
Compression:
Stored size: 349 Bytes
Contents
# frozen_string_literal: true require "narray" class NArray def type case typecode when 1 then :byte when 2 then :sint when 3 then :int when 4 then :sfloat when 5 then :float when 6 then :scomplex when 7 then :complex when 8 then :object else raise "Unknown typecode: #{typecode}" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ffi-gdal-1.1.0 | lib/ext/narray_ext.rb |
ffi-gdal-1.0.4 | lib/ext/narray_ext.rb |
ffi-gdal-1.0.3 | lib/ext/narray_ext.rb |