ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/CBOR-XS/doc/stringref.pod
(Generate patch)

Comparing CBOR-XS/doc/stringref.pod (file contents):
Revision 1.4 by root, Tue Dec 27 21:24:33 2016 UTC vs.
Revision 1.5 by root, Wed Apr 25 06:37:12 2018 UTC

240 "jjj", "kkk", "lll", "mmm", "nnn", "ooo", "ppp", "qqq", "rrr", 240 "jjj", "kkk", "lll", "mmm", "nnn", "ooo", "ppp", "qqq", "rrr",
241 "333", 241 "333",
242 "ssss", 242 "ssss",
243 "qqq", "rrr", "ssss"] 243 "qqq", "rrr", "ssss"]
244 244
245The strings "1", "4" and "rrr" are too short to get an index assigned. All others that are 245The strings "1", "4" and "rrr" are too short to get an index assigned. All
246not encoded with a stringref do: 246others that are not encoded with a stringref do (this assumes that JSON
247strings are encoded as CBOR byte strings):
247 248
248 d9 0100 # tag(256) 249 d9 0100 # tag(256)
249 98 20 # array(32) 250 98 20 # array(32)
250 41 # bytes(1) 251 41 # bytes(1)
251 31 # "1" 252 31 # "1"
299 707070 # "ppp" 300 707070 # "ppp"
300 43 # bytes(3) 301 43 # bytes(3)
301 717171 # "qqq" 302 717171 # "qqq"
302 43 # bytes(3) 303 43 # bytes(3)
303 727272 # "rrr" 304 727272 # "rrr"
305 d8 19 # tag(25)
306 01 # unsigned(1)
304 44 # bytes(4) 307 44 # bytes(4)
305 73737373 # "ssss" 308 73737373 # "ssss"
306 d8 19 # tag(25)
307 01 # unsigned(1)
308 d8 19 # tag(25) 309 d8 19 # tag(25)
309 17 # unsigned(23) 310 17 # unsigned(23)
310 43 # bytes(3) 311 43 # bytes(3)
311 727272 # "rrr" 312 727272 # "rrr"
312 d8 19 # tag(25) 313 d8 19 # tag(25)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines