in reply to C types and SV's and unpack

Tell us what library you are using. Perhaps someone has some experience with it. Apart from that, I would at least change the magic numbers to constants, and use switch and case instead of an if-then-else cascade.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Replies are listed 'Best First'.
Re^2: C types and SV's
by blakew (Monk) on Jul 18, 2010 at 19:00 UTC
    Tell us what library you are using.

    libtiff

      Are you trying to reinvent the wheel? Imager and Image::GeoTIFF::Tiled already implement interfaces to libtiff.

      Alexander

      --
      Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
        I'm somewhat embarrassed to admit to the authorship of the latter, and the interest of this post is to make it better! (the use is extremely limited as released.)