Namespaces
Enumerations
enum SerializedFieldType
| Name | Value | Comments |
|---|---|---|
| SerializedFieldTypeBoolean | 0x00 |
Boolean type |
| SerializedFieldTypeUInt8 | 1 |
Unsigned 8-bit type |
| SerializedFieldTypeUInt16 | 2 |
Unsigned 16-bit type |
| SerializedFieldTypeUInt32 | 3 |
Unsigned 32-bit type |
| SerializedFieldTypeUInt64 | 4 |
Unsigned 64-bit type |
| SerializedFieldTypeInt8 | 5 |
Signed 8-bit type |
| SerializedFieldTypeInt16 | 6 |
Signed 16-bit type |
| SerializedFieldTypeInt32 | 7 |
Signed 32-bit type |
| SerializedFieldTypeInt64 | 8 |
Signed 64-bit type |
| SerializedFieldTypeFloatingPoint32 | 9 |
32-bit float type |
| SerializedFieldTypeFloatingPoint64 | 10 |
64-bit float type |
| SerializedFieldTypeUTF8String | 11 |
UTF-8 string type |
| SerializedFieldTypeByteString | 12 |
Byte string type |
| SerializedFieldTypeStructure | 13 |
User-defined structure type |
| SerializedFieldTypeArray | 14 |
Array type |
A list of TLV types to write with a TLV field.
Defined at line 45 of file x64-shared/gen/third_party/openweave-core/src/include/Weave/Support/SerializationUtils.h
enum SerializedFieldTypeMasks
| Name | Value |
|---|---|
| kMask_Type | 0x7f |
| kMask_NullableFlag | 0x80 |
Masks for accessing bits of SerializedFieldType.
Defined at line 68 of file x64-shared/gen/third_party/openweave-core/src/include/Weave/Support/SerializationUtils.h
enum SerializedFieldTypeBits
| Name | Value |
|---|---|
| kBit_Nullable | 7 |
Bitfield of SerializedFieldType.
Defined at line 78 of file x64-shared/gen/third_party/openweave-core/src/include/Weave/Support/SerializationUtils.h
Records
-
class ArrayLengthAndBuffer -
class ErrorFormatter -
class FieldDescriptor -
class MemoryManagement -
class SchemaFieldDescriptor -
class SerializationContext -
class SerializedByteString -
class SerializedFieldTypeBoolean_array -
class SerializedFieldTypeByteString_array -
class SerializedFieldTypeFloatingPoint32_array -
class SerializedFieldTypeFloatingPoint64_array -
class SerializedFieldTypeInt16_array -
class SerializedFieldTypeInt32_array -
class SerializedFieldTypeInt64_array -
class SerializedFieldTypeInt8_array -
class SerializedFieldTypeUInt16_array -
class SerializedFieldTypeUInt32_array -
class SerializedFieldTypeUInt64_array -
class SerializedFieldTypeUInt8_array -
class SerializedFieldTypeUTF8String_array -
class StructureSchemaPointerPair
Functions
-
uint16_t Base64Encode (const uint8_t *in,uint16_tinLen,char *out)Encode an array of bytes to a base64 string.
Returns length of generated string.
Output will contain padding characters ('=') as necessary to make length a multiple of 4 characters.
Output DOES NOT include a null terminator.
Output buffer must be at least (inLen + 2) / 3 * 4 bytes long.
Input and output buffers CANNOT overlap.
-
uint16_t Base64URLEncode (const uint8_t *in,uint16_tinLen,char *out) -
uint16_t Base64Encode (const uint8_t *in,uint16_tinLen,char *out,Base64ValToCharFunctvalToCharFunct) -
const char * ErrorStr (int32_t err) -
void FormatError (char *buf,uint16_tbufSize,const char *subsys,int32_terr,const char *desc) -
uint16_t Base64Decode (const char *in,uint16_tinLen,uint8_t *out)Decode a base64 string to bytes.
Returns length of decoded data, or UINT16_MAX if input could not be decoded.
Input MAY contain padding characters ('=') but only at the end of the input string.
Output buffer must be at least inLen * 3 / 4 bytes long, however the actual output
may be shorter than this due to padding.
Supports decode in place by setting out pointer equal to in.
-
uint16_t Base64URLDecode (const char *in,uint16_tinLen,uint8_t *out) -
uint16_t Base64Decode (const char *in,uint16_tinLen,uint8_t *out,Base64CharToValFunctcharToValFunct) -
uint32_t Base64Encode32 (const uint8_t *in,uint32_tinLen,char *out)Encode/decode functions that take/return 32-bit lengths.
Similar to the above functions, except Base64Decode32() returns UINT32_MAX if the input cannot be decoded.
-
uint32_t Base64Encode32 (const uint8_t *in,uint32_tinLen,char *out,Base64ValToCharFunctvalToCharFunct) -
uint32_t Base64Decode32 (const char *in,uint32_tinLen,uint8_t *out) -
uint32_t Base64Decode32 (const char *in,uint32_tinLen,uint8_t *out,Base64CharToValFunctcharToValFunct) -
uint8_t DaysInMonth (uint16_t year, uint8_t month) -
uint8_t FirstWeekdayOfYear (uint16_t year) -
void CalendarDateToOrdinalDate (uint16_tyear,uint8_tmonth,uint8_tdayOfMonth,uint16_t &dayOfYear) -
bool CalendarDateToDaysSinceEpoch (uint16_tyear,uint8_tmonth,uint8_tdayOfMonth,uint32_t &daysSinceEpoch) -
void DaysSinceEpochToCalendarDate (uint32_tdaysSinceEpoch,uint16_t &year,uint8_t &month,uint8_t &dayOfMonth) -
void AdjustCalendarDate (uint16_t &year,uint8_t &month,uint8_t &dayOfMonth,int32_trelativeDays) -
bool CalendarTimeToSecondsSinceEpoch (uint16_tyear,uint8_tmonth,uint8_tdayOfMonth,uint8_thour,uint8_tminute,uint8_tsecond,uint32_t &secondsSinceEpoch) -
WEAVE_ERROR DeallocateDeserializedStructure (void *aStructureData,const SchemaFieldDescriptor *aFieldDescriptors,SerializationContext *aContext) -
template <typename FlagsT, typename FlagT>bool GetFlag (const FlagsT & inFlags, const FlagT inFlag)Defined at line 34 of file x64-shared/gen/third_party/openweave-core/src/include/Weave/Support/FlagUtils.hpp
-
template <typename FlagsT, typename FlagT>void ClearFlag (FlagsT & inFlags, const FlagT inFlag)Defined at line 40 of file x64-shared/gen/third_party/openweave-core/src/include/Weave/Support/FlagUtils.hpp
-
void RegisterErrorFormatter (ErrorFormatter * errFormatter) -
const char * StatusReportStr (uint32_t profileId, uint16_t statusCode) -
bool IsLeapYear (uint16_t year) -
template <class TEvent>nl::Weave::Profiles::DataManagement::event_id_t LogEvent (TEvent * aEvent)Defined at line 35 of file x64-shared/gen/third_party/openweave-core/src/include/Weave/Support/TraitEventUtils.h
-
void OrdinalDateToCalendarDate (uint16_tyear,uint16_tdayOfYear,uint8_t &month,uint8_t &dayOfMonth) -
void SecondsSinceEpochToCalendarTime (uint32_tsecondsSinceEpoch,uint16_t &year,uint8_t &month,uint8_t &dayOfMonth,uint8_t &hour,uint8_t &minute,uint8_t &second) -
WEAVE_ERROR SerializedDataToTLVWriter (nl::Weave::TLV::TLVWriter &aWriter,void *aStructureData,const SchemaFieldDescriptor *aFieldDescriptors) -
WEAVE_ERROR SerializedDataToTLVWriterHelper (nl::Weave::TLV::TLVWriter &aWriter,uint8_taDataTag,void *aAppData) -
template <typename FlagsT, typename FlagT>void SetFlag (FlagsT & inFlags, const FlagT inFlag)Defined at line 46 of file x64-shared/gen/third_party/openweave-core/src/include/Weave/Support/FlagUtils.hpp
-
template <typename FlagsT, typename FlagT>void SetFlag (FlagsT &inFlags,const FlagTinFlag,const boolinValue)Defined at line 52 of file x64-shared/gen/third_party/openweave-core/src/include/Weave/Support/FlagUtils.hpp
-
template <class TEvent>void NullifyAllEventFields (TEvent * aEvent)Convenience setter function to set all nullable fields within an event to NULL
It does so by setting the '__nullified_fields' member within the code-generated
structure to 0xFFs (bit set = null, bit cleared = not-null).
Defined at line 56 of file x64-shared/gen/third_party/openweave-core/src/include/Weave/Support/TraitEventUtils.h
-
template <class TEvent>nl::Weave::Profiles::DataManagement::event_id_t LogEvent (TEvent * aEvent, const nl::Weave::Profiles::DataManagement::EventOptions & aOptions)Defined at line 62 of file x64-shared/gen/third_party/openweave-core/src/include/Weave/Support/TraitEventUtils.h
-
template <class TEvent>WEAVE_ERROR DeserializeEvent (nl::Weave::TLV::TLVReader &aReader,TEvent *aEvent,nl::SerializationContext *aContext)Defined at line 78 of file x64-shared/gen/third_party/openweave-core/src/include/Weave/Support/TraitEventUtils.h
-
template <class TEvent>WEAVE_ERROR DeallocateEvent (TEvent * aEvent, nl::SerializationContext * aContext)Defined at line 94 of file x64-shared/gen/third_party/openweave-core/src/include/Weave/Support/TraitEventUtils.h
-
WEAVE_ERROR TLVReaderToDeserializedData (nl::Weave::TLV::TLVReader &aReader,void *aStructureData,const SchemaFieldDescriptor *aFieldDescriptors,SerializationContext *aContext) -
WEAVE_ERROR TLVReaderToDeserializedDataHelper (nl::Weave::TLV::TLVReader &aReader,uint8_taDataTag,void *aAppData,SerializationContext *aContext) -
uint32_t secondsToMilliseconds (uint32_t seconds)Convert integer seconds to milliseconds.
Defined at line 109 of file gen/third_party/openweave-core/src/include/Weave/Support/TimeUtils.h