Closed NuclearCookie closed 7 years ago
Hi,
I have pushed hxbit 1.2.0 on haxelib, tell me if it helps. The error might come from passing a value > 255 to addByte() since it uses a neko string buffer at the low level.
That did the trick. Thanks a lot!
Hello,
I'm integrating hxbit into our fork of the openfl framework. This because the normal haxe serialization library results in huge serialization files and very slow parsing.
I've progressed quite far, but now I'm stuck. When serializing, I get this wonderful neko error message:
Uncaught exception - std@buffer_add_char
I've added a callstack and it comes from this:
Which is this code:
The only place that I can see where
std@buffer_add_char
could be called from, is from Query.hx:When calling
nextChar()
. However, commenting out this code still gives me the same error. I'm lost on how to progress. Do you have any clue, or can you give some tips on how to debug neko with macros? I tried to trace in several places but most places don't give me any output at all.You can see the code here: https://github.com/FishingCactus/openfl/tree/feature/hxbit_serialization
Thanks,
Pieter