I want to work on a 
[stb_image](https://github.com/nothings/stb/blob/master/stb_image.h) wrapper. 
I'm trying to figure out the best (and most efficient) way of storing pixel 
data in Nim's data structures.

stb_image stores the pixel data in an unsigned char * type. I had a chat with 
the person who wrote the nimPNG package and he says that using Nim's string 
would be a good container. But when I was working with stb_image in Nim (for 
another project) I was using a seq[uint8] type ([thread link 
here](http://forum.nim-lang.org///forum.nim-lang.org/t/2638), [final 
mini-wrapper 
here](https://gitlab.com/define-private-public/PeterShirley-RayTracing-Nim/blob/77728b48a4a58a1420f1bbcef983c37284a71dcf/working/stb_image.nim).
 Which one would be better to work with?

Reply via email to