Releases: ssilverman/libCBOR
Releases · ssilverman/libCBOR
1.3.0
Added
expectBoolean
helper function, for consistency.expectBytesOrBreak
andexpectTextOrBreak
helper functions for reading indefinite-length Bytes or Text chunks.isFalse()
,isTrue()
,isNull()
,isUndefined()
, andisBreak()
functions inReader
.isNegativeOverflow()
andisUnsigned()
functions inReader
help disambiguate some special cases when reading and expecting integer values viaReader::getInt()
andexpectInt
.isIndefinite
output parameter inexpectBytes
,expectText
,expectArray
, andexpectMap
for discovering indefinite-length data items.
Changed
- The
readFully
helper function now returns asize_t
instead of anunsigned int
. Reader::getInt()
and theexpectInt
helper function can now read and expect both signed and unsigned integers. NewisNegativeOverflow()
andisUnsigned()
functions inReader
help disambiguate some special cases.- Documentation updates.
Removed
expectIndefiniteBytes
andexpectIndefiniteText
functions because there's no need to separate the syntactic difference. There's a newisIndefinite
output parameter inexpectBytes
,expectText
,expectArray
, andexpectMap
for discovering indefinite-length data items.
Fixed
expectDoubleValue
was using afloat
internally.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.