summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorChristopher Collins <ccollins@apache.org>2016-05-18 20:24:32 -0700
committerChristopher Collins <ccollins@apache.org>2016-05-19 14:32:04 -0700
commitffd7dd376df7393d516b62853eb8dee302e0931b (patch)
treef7b81e7ec6b5b1b430e3d9bd0eb88550e018a619 /sys
parent9004fbfcda153ab0d4641a26eb08cc6aa2c4f993 (diff)
json - Fix array-of-int decoding; add basic test.
Array decoding seems to be broken. This is an inefficient and ugly fix just to get it working. We will need to rethink the semantics of the function pointers that get used here (read_next, read_prev, and readn). The fundamental problem is that the current offset is adjusted automatically upon read when sometimes we just need to "peek" at the current character. The other issue is that we don't know how many characters an string representation of an int occupies. Currently we just read up to 64 characters and then backtrack until the end of the number. It would be better to read individual characters until we hit the end of the number.
Diffstat (limited to 'sys')
0 files changed, 0 insertions, 0 deletions