Skip to content

Support for strings of unknown length #11

@crawfordcomeaux

Description

@crawfordcomeaux

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions