ocaml-ctypes icon indicating copy to clipboard operation
ocaml-ctypes copied to clipboard

Endianness Support

Open dsheets opened this issue 12 years ago • 2 comments
trafficstars

Support for Big Endian, Little Endian, and Host Endian layouts would bring ctypes into feature parity on primitive types with cstruct.

Is there currently endianness support somehow?

dsheets avatar Nov 04 '13 18:11 dsheets

Could this be implemented using views that wrap htons, ntohs, etc.?

yallop avatar Jun 13 '16 10:06 yallop

I don't think those functions are enough -- there is no explicit support for little endian afaik.

dsheets avatar Jun 13 '16 11:06 dsheets