Releases: ssilverman/libCBOR
Releases · ssilverman/libCBOR
Release list
1.3.0
Added
expectBooleanhelper function, for consistency.expectBytesOrBreakandexpectTextOrBreakhelper functions for reading indefinite-length Bytes or Text chunks.isFalse(),isTrue(),isNull(),isUndefined(), andisBreak()functions inReader.isNegativeOverflow()andisUnsigned()functions inReaderhelp disambiguate some special cases when reading and expecting integer values viaReader::getInt()andexpectInt.isIndefiniteoutput parameter inexpectBytes,expectText,expectArray, andexpectMapfor discovering indefinite-length data items.
Changed
- The
readFullyhelper function now returns asize_tinstead of anunsigned int. Reader::getInt()and theexpectInthelper function can now read and expect both signed and unsigned integers. NewisNegativeOverflow()andisUnsigned()functions inReaderhelp disambiguate some special cases.- Documentation updates.
Removed
expectIndefiniteBytesandexpectIndefiniteTextfunctions because there's no need to separate the syntactic difference. There's a newisIndefiniteoutput parameter inexpectBytes,expectText,expectArray, andexpectMapfor discovering indefinite-length data items.
Fixed
expectDoubleValuewas using afloatinternally.Reader::isWellFormed()allowed nested indefinite-length bytes or text.Reader::getBoolean()was allowing certain 1-byte simple values to function as booleans.
libCBOR v1.2.0
This release updates the API to include a way to access the read size and write size, and also makes the Reader and Writer classes implement Stream and Print, respectively. As well, the byte array and EEPROM Stream and Print implementations now provide a way to access the internal index (or address, in the case of EEPROM), for ease of determining how far reading or writing has progressed.
First libCBOR release
This is the first release of the libCBOR library. It includes functions for reading and writing, and helper functions for parsing and for processing EEPROM.