Thank you Matti. That is what I was looking for!

However, I've since learned that it is not what is needed. I'm posting again 
because I found some aspects of the PyArrayInterface a bit inconsistent w/ 
other places in numpy and confusing. It may be the case that others in the 
future find this post helpful.

Numpy's PyArrayInterface structure in its simplest use requires 3 fields to 
declare the type of data pointed to.

```
char typekind; // a code declaring the type, does not declare the size of the 
type. 
int itemsize; // the size of the type declared in typekind
int flags; // flags that among other things declare endianness of the data 
pointed to
```

I needed all 3 of these, the flags field was needed to tell that the memory was 
in native machine order because that is not the default.

Thanks for the help, I got it working
_______________________________________________
NumPy-Discussion mailing list -- numpy-discussion@python.org
To unsubscribe send an email to numpy-discussion-le...@python.org
https://mail.python.org/mailman3/lists/numpy-discussion.python.org/
Member address: arch...@mail-archive.com

Reply via email to