thebuzzmedia/universal-binary-json-java — comment on commit d61aaa273b45a5fed3147bb5de82138922e7e387
File: src/main/java/org/ubjson/io/UBJOutputStream.java line 247
By Sannis:

Hm, maybe I misunderstood specification:

> An example would look like this:
>
> [a][255]
> [S][3][bob]
> [I][1024]
> [T]
> [F]
> [S][4][ham!]
> [E]
>
> The three key elements being the lowercased ‘a’ marker, the length of 0xFF (255) and the ‘E’ marker at the end of the container.

This should mean that I can't encode array with 255 elements with [a] marker, because in this case decoder will treat it as unknown-length array and will wait for [E] after elements.