yallop / ocaml-ctypes

Library for binding to C libraries using pure OCaml
MIT License
372 stars 95 forks source link

Endianness Support #84

Open dsheets opened 11 years ago

dsheets commented 11 years ago

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?

yallop commented 8 years ago

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

dsheets commented 8 years ago

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