cb0r icon indicating copy to clipboard operation
cb0r copied to clipboard

Fix writing for simple types like true,false,null,undef

Open sirkrypt0 opened this issue 2 years ago • 1 comments

Previously, writing simple types was not in line with the CBOR standard. Writing the array [false,true,null,undefined] would result in 84 38 54 75 96 which is totally off. This is now fixed and correctly returns 84 f4 f5 f6 f7, which can be decoded correctly.

Closes #4

sirkrypt0 avatar Jul 19 '22 08:07 sirkrypt0

Works also for me

demetriopitasi avatar Jan 17 '24 09:01 demetriopitasi