Skip to content

upack doesn't roundtrip Ext nested inside another Msg #369

@harpocrates

Description

@harpocrates

Here's a minimal roundtripping failure:

val msg = upack.Arr(upack.Ext(33, new Array[Byte](4)), upack.False)
val bytes = upack.writeToByteArray(msg)
val msg2 = upack.read(bytes)

This decodes as upack.Arr(upack.Ext(33, new Array[Byte](4)), upack.Int32(33)) (the last bit is the problem: upack.Int32(33) instead of upack.False).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions