I found this project while looking for libraries to help decode Action Message Format packets. Everything I've found fails in some way, though. Decoder Ring could potentially be used for decoding AMF, but would need to support utf-8 strings of unknown length (as well as other things, but focusing on strings first).
To implement that, I think some additional state will need to be tracked.
Handling strings in DecoderRing is possible, but that would require reading the length from the buffer and the only time the buffer's currently read is in FieldDecoder. Would that break their separation of concerns? Any other thoughts on how to handle this?
I found this project while looking for libraries to help decode Action Message Format packets. Everything I've found fails in some way, though. Decoder Ring could potentially be used for decoding AMF, but would need to support utf-8 strings of unknown length (as well as other things, but focusing on strings first).
To implement that, I think some additional state will need to be tracked.
Handling strings in DecoderRing is possible, but that would require reading the length from the buffer and the only time the buffer's currently read is in FieldDecoder. Would that break their separation of concerns? Any other thoughts on how to handle this?