amazon-ion / ion-cli

Apache License 2.0
35 stars 15 forks source link

Display multibyte e-expression headers #181

Open zslayton opened 1 week ago

zslayton commented 1 week ago

Currently, inspect assumes all e-expressions will have a one-byte header: https://github.com/amazon-ion/ion-cli/blob/03a3fc87edce093b3c00415eec6dccfc5aec99be/src/bin/ion/commands/inspect.rs#L458-L466

However, is only the case for invocations of user macros with an ID lower than 64. Invocations of system macros are two bytes (0xEE 0x__), and invocations of macros with IDs >= 64 are at least two bytes.