Closed petterarvidsson closed 8 years ago
@nsg That would work, and then we could use ntoh on the client side. Wanted to "keep it simple", but I can clearly see that this clusterf*ck of bit operators is maybe not simple :smile: I'll make an update to both!
Ah, sigh, we are also using the other chunk data with sub byte lengths and then there is all the fun with the java ints only being signed (making it impossible to write unsigned bytes using ByteBuffer anyway). So in the end we will have all the extra code of creating the buffer and few of the benefits...
Keep track of the revision of the chunk