hobuinc / greyhound

Greyhound is a point cloud streaming server. It should be considered deprecated for now. Use Entwine and Entwine Point Tile directly if you just want to serve point cloud web services.
https://greyhound.io
Apache License 2.0
131 stars 51 forks source link

Endianness of binary data count incorrect #52

Open Hisol opened 6 years ago

Hisol commented 6 years ago

The client documentation refers to the 32bit unsigned integer at the end of the point-cloud data as network byte order

These may be parsed as a 32-bit unsigned integer, transmitted in network byte order.

Which is defined as being Big-Endian [https://www.ibm.com/support/knowledgecenter/en/SSB27U_6.4.0/com.ibm.zvm.v640.kiml0/asonetw.htm](IBM network byte order article)

However it seems that the server is returning the data in Little-Endian format (when running on an Intel architecture)

EG for a response with 1456 entries the last 4 bytes of the response are: 0xb0050000 Rather than 0x000005b0