Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Decode List(Text) encoded by other tools
Without this, a `List(Text)` (which is `List(List(Int8))`) which is not encodeded as `List(struct { x @0 :Text; })`, will decode the first text pointer as a tag and get very wrong answers. The patch: * Makes sure we give a sensible error for unsupported types. * Provides better checking that data is correctly formatted. * Also adds support for decoding `List(Text)` correctly, as well as decoding `List(struct {})` which was upgraded from `List(Int64)` or `List(AnyPointer)` (or compatible types). We still don't support double lists. This relates to Issue #3 (which relies on the upgrade decoding for its `List(Text)` encoding to be valid).
- Loading branch information