nl
Weave के लिए nlelsert.h ओवरराइड.
खास जानकारी
गिनती |
|
---|---|
@357
|
enum |
@358
|
enum |
@359
|
enum |
@360
|
enum |
@361
|
enum |
SerializedFieldType{
|
enum TLV फ़ील्ड के साथ लिखने के लिए TLV प्रकार की एक सूची. |
SerializedFieldTypeBits
|
enum SerializedFieldType का बिटफ़ील्ड. |
SerializedFieldTypeMasks
|
enum SerializedFieldType के बिट ऐक्सेस करने के लिए मास्क. |
टाइपडेफ़ |
|
---|---|
Base64CharToValFunct)(uint8_t c)
|
टाइपडेफ़uint8_t(*
|
Base64ValToCharFunct)(uint8_t val)
|
टाइपडेफ़char(*
|
MemoryAllocate)(size_t size)
|
टाइपडेफ़void *(*
मेमोरी आवंटन/मुफ़्त फ़ंक्शन पॉइंटर. |
MemoryFree)(void *ptr)
|
टाइपडेफ़void(*
|
MemoryReallocate)(void *ptr, size_t size)
|
टाइपडेफ़void *(*
|
वैरिएबल |
|
---|---|
sASN1ErrorFormatter =
{
nl::Weave::ASN1::FormatASN1Error,
NULL
}
|
const ErrorFormatter
|
sElementSize =
{
sizeof(bool),
sizeof(uint8_t),
sizeof(uint16_t),
sizeof(uint32_t),
sizeof(uint64_t),
sizeof(int8_t),
sizeof(int16_t),
sizeof(int32_t),
sizeof(int64_t),
sizeof(float),
sizeof(double),
sizeof(char *),
sizeof(SerializedByteString),
sizeof(void *),
sizeof(void *)
}[]
|
const uint8_t
|
sErrorFormatterList = &sWeaveErrorFormatter
|
const ErrorFormatter *
गड़बड़ी फ़ॉर्मैट करने वाले फ़ंक्शन की लिंक की गई सूची.
|
sErrorStr[WEAVE_CONFIG_ERROR_STR_SIZE]
|
char
फ़ॉर्मैट की गई गड़बड़ी वाली स्ट्रिंग को सेव करने के लिए स्टैटिक बफ़र.
|
sErrorStr[1024]
|
char
यह रूटीन, NULL-टर्मिनेटेड C स्ट्रिंग दिखाता है, जिसे मैन्युअल तौर पर पढ़ा जा सकता है. इस स्ट्रिंग में, खास जानकारी वाली प्रोफ़ाइल से जुड़े स्टेटस कोड के बारे में बताया जाता है.
|
sWeaveErrorFormatter =
{
nl::Weave::FormatWeaveError,
&sASN1ErrorFormatter
}
|
const ErrorFormatter
|
फ़ंक्शन |
|
---|---|
AdjustCalendarDate(uint16_t & year, uint8_t & month, uint8_t & dayOfMonth, int32_t relativeDays)
|
void
|
Base64CharToVal(uint8_t c)
|
uint8_t
|
Base64Decode(const char *in, uint16_t inLen, uint8_t *out, Base64CharToValFunct charToValFunct)
|
uint16_t
|
Base64Decode(const char *in, uint16_t inLen, uint8_t *out)
|
uint16_t
|
Base64Decode32(const char *in, uint32_t inLen, uint8_t *out, Base64CharToValFunct charToValFunct)
|
uint32_t
|
Base64Decode32(const char *in, uint32_t inLen, uint8_t *out)
|
uint32_t
|
Base64Encode(const uint8_t *in, uint16_t inLen, char *out, Base64ValToCharFunct valToCharFunct)
|
uint16_t
|
Base64Encode(const uint8_t *in, uint16_t inLen, char *out)
|
uint16_t
|
Base64Encode32(const uint8_t *in, uint32_t inLen, char *out, Base64ValToCharFunct valToCharFunct)
|
uint32_t
|
Base64Encode32(const uint8_t *in, uint32_t inLen, char *out)
|
uint32_t
|
Base64URLCharToVal(uint8_t c)
|
uint8_t
|
Base64URLDecode(const char *in, uint16_t inLen, uint8_t *out)
|
uint16_t
|
Base64URLEncode(const uint8_t *in, uint16_t inLen, char *out)
|
uint16_t
|
Base64URLValToChar(uint8_t val)
|
char
|
Base64ValToChar(uint8_t val)
|
char
|
CalendarDateToDaysSinceEpoch(uint16_t year, uint8_t month, uint8_t dayOfMonth, uint32_t & daysSinceEpoch)
|
bool
|
CalendarDateToOrdinalDate(uint16_t year, uint8_t month, uint8_t dayOfMonth, uint16_t & dayOfYear)
|
void
|
CalendarTimeToSecondsSinceEpoch(uint16_t year, uint8_t month, uint8_t dayOfMonth, uint8_t hour, uint8_t minute, uint8_t second, uint32_t & secondsSinceEpoch)
|
bool
|
ClearFlag(FlagsT & inFlags, const FlagT inFlag)
|
void
|
DateToManufacturingWeek(uint16_t year, uint8_t month, uint8_t day, uint16_t & mfgYear, uint8_t & mfgWeek)
|
void
|
DaysInMonth(uint16_t year, uint8_t month)
|
uint8_t
|
DaysSinceEpochToCalendarDate(uint32_t daysSinceEpoch, uint16_t & year, uint8_t & month, uint8_t & dayOfMonth)
|
void
|
DaysToMarch1(uint16_t year)
|
uint8_t
|
DeallocateDeserializedStructure(void *aStructureData, const SchemaFieldDescriptor *aFieldDescriptors, SerializationContext *aContext)
|
|
ErrorStr(int32_t err)
|
NL_DLL_EXPORT const char *
इस रूटीन से, दी गई गड़बड़ी के बारे में जानकारी देने वाली NULL-टर्मिनेटेड C स्ट्रिंग मिलती है, जिसे आसानी से पढ़ा जा सकता है.
|
ExtractManufacturingDateFromSerialNumber(const char *serialNum, uint16_t & year, uint8_t & month, uint8_t & day)
|
|
FindNullifiedFieldsArray(void *aStructureData, const SchemaFieldDescriptor *aSchemaDescriptor, uint8_t *& aNullifiedFields)
|
C स्ट्रक्चर के आखिर में शून्य शून्य फ़ील्ड की जगह की जगह पता करने के लिए हेल्पर फ़ंक्शन.
|
FindStatusReportStr(uint32_t inProfileId, uint16_t inStatusCode)
|
const char *
|
FirstWeekdayOfYear(uint16_t year)
|
uint8_t
|
FormatError(char *buf, uint16_t bufSize, const char *subsys, int32_t err, const char *desc)
|
void
दी गई गड़बड़ी के बारे में बताने वाली, NULL (टर्मिनल) स्ट्रिंग की स्ट्रिंग देता है.
|
GetArrayElementSize(uint32_t & aOutSize, const FieldDescriptor *aFieldPtr, SerializedFieldType aType)
|
|
GetFlag(const FlagsT & inFlags, const FlagT inFlag)
|
bool
|
IsBase34NoIOChar(char ch)
|
bool
|
IsLeapYear(uint16_t year)
|
bool
|
IsValidFieldType(SerializedFieldType aType)
|
bool
|
IsValidSerialNumber(const char *serialNum)
|
bool
|
LogEvent(TEvent *aEvent)
|
nl::Weave::Profiles::DataManagement::event_id_t
|
LogEvent(TEvent *aEvent, const nl::Weave::Profiles::DataManagement::EventOptions & aOptions)
|
nl::Weave::Profiles::DataManagement::event_id_t
|
ManufacturingWeekToDate(uint16_t mfgYear, uint8_t mfgWeek, uint16_t & year, uint8_t & month, uint8_t & day)
|
void
|
MarchBasedDayOfYearToMonth(uint16_t dayOfYear)
|
uint8_t
|
MarchBasedMonthToDayOfYear(uint8_t month)
|
uint16_t
|
NullifyAllEventFields(TEvent *aEvent)
|
void
|
OrdinalDateToCalendarDate(uint16_t year, uint16_t dayOfYear, uint8_t & month, uint8_t & dayOfMonth)
|
void
|
ReadDataForType(TLVReader & aReader, void *aStructureData, const FieldDescriptor *& aFieldPtr, SerializedFieldType aType, bool aInArray, SerializationContext *aContext)
|
स्ट्रक्चर्ड डेटा के आधार पर, TLV से कोई खास एंट्री पढ़ने का रीडर फ़ंक्शन.
|
ReadNullableDataForType(TLVReader & aReader, void *aStructureData, const FieldDescriptor *& aFieldPtr, SerializedFieldType aType, bool & aIsNullified, SerializationContext *aContext)
|
TLV से पढ़ने से पहले, डेटा की वैल्यू शून्य या शून्य है या नहीं, यह देखने के लिए रीडर फ़ंक्शन.
|
RegisterErrorFormatter(ErrorFormatter *errFormatter)
|
NL_DLL_EXPORT void
गड़बड़ी फ़ॉर्मैट करने वाले प्रोग्राम की ग्लोबल सूची में, गड़बड़ी को फ़ॉर्मैट करने वाला नया फ़ंक्शन जोड़ें.
|
SecondsSinceEpochToCalendarTime(uint32_t secondsSinceEpoch, uint16_t & year, uint8_t & month, uint8_t & dayOfMonth, uint8_t & hour, uint8_t & minute, uint8_t & second)
|
void
|
SerializedDataToTLVWriter(TLVWriter & aWriter, void *aStructureData, const SchemaFieldDescriptor *aFieldDescriptors)
|
किसी डेटा स्ट्रक्चर को TLV स्ट्रक्चर में बदलने के लिए एक लेखक फ़ंक्शन.
|
SerializedDataToTLVWriterHelper(TLVWriter & aWriter, uint8_t aDataTag, void *aAppData)
|
रैपर लेखक फ़ंक्शन जो SerializedDataToTLVr को कंटेनर के साथ रखता है.
|
SetFlag(FlagsT & inFlags, const FlagT inFlag)
|
void
|
SetFlag(FlagsT & inFlags, const FlagT inFlag, const bool inValue)
|
void
|
StatusReportStr(uint32_t profileId, uint16_t statusCode)
|
const char *
|
TLVReaderToDeserializedData(nl::Weave::TLV::TLVReader & aReader, void *aStructureData, const SchemaFieldDescriptor *aFieldDescriptors, SerializationContext *aContext)
|
TLV को C-स्ट्रक्चर्ड में बदलने के लिए एक रीडर फ़ंक्शन.
|
TLVReaderToDeserializedDataHelper(nl::Weave::TLV::TLVReader & aReader, uint8_t aDataTag, void *aAppData, SerializationContext *aContext)
|
एक हेल्पर फ़ंक्शन, जो एक TLV डेटा एलिमेंट को हटाता है.
|
WriteArrayData(TLVWriter & aWriter, void *aStructureData, const FieldDescriptor *aFieldPtr)
|
कैटगरी बनाने वाला लेखक फ़ंक्शन.
|
WriteDataForType(TLVWriter & aWriter, void *aStructureData, const FieldDescriptor *& aFieldPtr, SerializedFieldType aType, bool aInArray)
|
एक लेखक फ़ंक्शन, स्ट्रक्चर्ड डेटा के आधार पर TLV में एक खास एंट्री लिखता है.
|
WriteNullableDataForType(TLVWriter & aWriter, void *aStructureData, const FieldDescriptor *& aFieldPtr, SerializedFieldType aType, bool aIsNullified)
|
TLV पर लिखने से पहले, यह देखने के लिए एक लेखक फ़ंक्शन कि डेटा शून्य हो सकता है या नहीं.
|
secondsToMilliseconds(uint32_t seconds)
|
uint32_t
|
नेमस्पेस |
|
---|---|
nl:: |
|
nl:: |
इस नेमस्पेस में, ब्लूटूथ कम ऊर्जा (BLE) वाले Weave के सभी इंटरफ़ेस शामिल हैं. इसे ब्लूटूथ स्मार्ट भी कहा जाता है. |
nl:: |
|
nl:: |
इस नेमस्पेस में Nest Weave सार्वजनिक कुंजी इन्फ़्रास्ट्रक्चर (PKI) सर्टिफ़िकेट के लिए ग्लोबल सिंबल शामिल हैं. |
nl:: |
|
nl:: |
|
nl:: |
गिनती
@357
@357
@358
@358
@35
@359
@360
@360
@361
@361
सीरियल फ़ील्ड का फ़ील्ड टाइप
SerializedFieldType
TLV फ़ील्ड के साथ लिखने के लिए TLV प्रकार की एक सूची.
प्रॉपर्टी | |
---|---|
SerializedFieldTypeArray
|
श्रेणी किस तरह की है. |
SerializedFieldTypeBoolean
|
बूलियन टाइप. |
SerializedFieldTypeByteString
|
बाइट स्ट्रिंग का टाइप. |
SerializedFieldTypeFloatingPoint32
|
32-बिट वाला फ़्लोट टाइप |
SerializedFieldTypeFloatingPoint64
|
64-बिट फ़्लोट |
SerializedFieldTypeInt16
|
साइन किया गया 16-बिट टाइप. |
SerializedFieldTypeInt32
|
साइन किया गया 32-बिट टाइप. |
SerializedFieldTypeInt64
|
साइन किया गया 64-बिट टाइप. |
SerializedFieldTypeInt8
|
साइन किया गया 8-बिट टाइप. |
SerializedFieldTypeStructure
|
उपयोगकर्ता के तय किए गए स्ट्रक्चर का टाइप. |
SerializedFieldTypeUInt16
|
साइन न किया गया 16-बिट टाइप. |
SerializedFieldTypeUInt32
|
साइन नहीं किया गया 32-बिट टाइप. |
SerializedFieldTypeUInt64
|
साइन न किया गया 64-बिट टाइप |
SerializedFieldTypeUInt8
|
साइन न किया गया 8-बिट टाइप. |
SerializedFieldTypeUTF8String
|
UTF-8 स्ट्रिंग टाइप. |
सीरियल फ़ील्ड फ़ील्ड टाइप बिट
SerializedFieldTypeBits
SerializedFieldType का बिटफ़ील्ड.
सीरियल फ़ील्ड फ़ील्ड टाइप मास्क
SerializedFieldTypeMasks
SerializedFieldType के बिट ऐक्सेस करने के लिए मास्क.
टाइपडेफ़
Base64CharToValFunct
uint8_t(* Base64CharToValFunct)(uint8_t c)
Base64ValToCharFunct
char(* Base64ValToCharFunct)(uint8_t val)
मेमोरी आवंटित
void *(* MemoryAllocate)(size_t size)
मेमोरी आवंटन/मुफ़्त फ़ंक्शन पॉइंटर.
मेमोरीफ़्री
void(* MemoryFree)(void *ptr)
मेमोरी रीयललोकेशन
void *(* MemoryReallocate)(void *ptr, size_t size)
वैरिएबल
SASN1Errorformater
const ErrorFormatter sASN1ErrorFormatter = { nl::Weave::ASN1::FormatASN1Error, NULL }
एलिमेंट के आकार
const uint8_t sElementSize[] = { sizeof(bool), sizeof(uint8_t), sizeof(uint16_t), sizeof(uint32_t), sizeof(uint64_t), sizeof(int8_t), sizeof(int16_t), sizeof(int32_t), sizeof(int64_t), sizeof(float), sizeof(double), sizeof(char *), sizeof(SerializedByteString), sizeof(void *), sizeof(void *) }
SErrorformatterList
const ErrorFormatter * sErrorFormatterList = &sWeaveErrorFormatter
गड़बड़ी फ़ॉर्मैट करने वाले फ़ंक्शन की लिंक की गई सूची.
गड़बड़ी गड़बड़ी
char sErrorStr[WEAVE_CONFIG_ERROR_STR_SIZE]
फ़ॉर्मैट की गई गड़बड़ी वाली स्ट्रिंग को सेव करने के लिए स्टैटिक बफ़र.
गड़बड़ी गड़बड़ी
char sErrorStr[1024]
यह रूटीन, NULL-टर्मिनेटेड C स्ट्रिंग दिखाता है, जिसे मैन्युअल तौर पर पढ़ा जा सकता है. इस स्ट्रिंग में, खास जानकारी वाली प्रोफ़ाइल से जुड़े स्टेटस कोड के बारे में बताया जाता है.
ब्यौरा | |||||
---|---|---|---|---|---|
पैरामीटर |
|
||||
लौटाए गए सामान |
तय की गई प्रोफ़ाइल में मौजूद स्टेटस कोड की जानकारी देने वाले, NULL-टर्मिनेटेड C स्ट्रिंग का पॉइंटर.
|
WEAVE_CONFIG_SHORT_ERROR_STR
SWeaveErrorformater
const ErrorFormatter sWeaveErrorFormatter = { nl::Weave::FormatWeaveError, &sASN1ErrorFormatter }
फ़ंक्शन
CalendarDate में बदलाव करना
void AdjustCalendarDate( uint16_t & year, uint8_t & month, uint8_t & dayOfMonth, int32_t relativeDays )
बेस64केफ़रटोवल
uint8_t Base64CharToVal( uint8_t c )
Base64डिकोड
uint16_t Base64Decode( const char *in, uint16_t inLen, uint8_t *out, Base64CharToValFunct charToValFunct )
Base64डिकोड
uint16_t Base64Decode( const char *in, uint16_t inLen, uint8_t *out )
Base64Decode32
uint32_t Base64Decode32( const char *in, uint32_t inLen, uint8_t *out, Base64CharToValFunct charToValFunct )
Base64Decode32
uint32_t Base64Decode32( const char *in, uint32_t inLen, uint8_t *out )
Base64Encode
uint16_t Base64Encode( const uint8_t *in, uint16_t inLen, char *out, Base64ValToCharFunct valToCharFunct )
Base64Encode
uint16_t Base64Encode( const uint8_t *in, uint16_t inLen, char *out )
Base64Encode32
uint32_t Base64Encode32( const uint8_t *in, uint32_t inLen, char *out, Base64ValToCharFunct valToCharFunct )
Base64Encode32
uint32_t Base64Encode32( const uint8_t *in, uint32_t inLen, char *out )
Base64URLCharToVal
uint8_t Base64URLCharToVal( uint8_t c )
Base64URLडिकोड
uint16_t Base64URLDecode( const char *in, uint16_t inLen, uint8_t *out )
Base64URLEncode
uint16_t Base64URLEncode( const uint8_t *in, uint16_t inLen, char *out )
Base64URLValToChar
char Base64URLValToChar( uint8_t val )
Base64ValToChar
char Base64ValToChar( uint8_t val )
कैलेंडर की तारीख से दिन का Epoch
bool CalendarDateToDaysSinceEpoch( uint16_t year, uint8_t month, uint8_t dayOfMonth, uint32_t & daysSinceEpoch )
कैलेंडर तारीख प्रति-तारीख
void CalendarDateToOrdinalDate( uint16_t year, uint8_t month, uint8_t dayOfMonth, uint16_t & dayOfYear )
कैलेंडर का समय से सेकंड के बाद से
bool CalendarTimeToSecondsSinceEpoch( uint16_t year, uint8_t month, uint8_t dayOfMonth, uint8_t hour, uint8_t minute, uint8_t second, uint32_t & secondsSinceEpoch )
झंडे हटाएं
void ClearFlag( FlagsT & inFlags, const FlagT inFlag )
तारीख से मैन्युफ़ैक्चरिंग वीक
void DateToManufacturingWeek( uint16_t year, uint8_t month, uint8_t day, uint16_t & mfgYear, uint8_t & mfgWeek )
महीने में दिन
uint8_t DaysInMonth( uint16_t year, uint8_t month )
दिन से लेकर EpochToCalendarDate
void DaysSinceEpochToCalendarDate( uint32_t daysSinceEpoch, uint16_t & year, uint8_t & month, uint8_t & dayOfMonth )
दिन से मार्च1
uint8_t DaysToMarch1( uint16_t year )
DEबनाएं
WEAVE_ERROR DeallocateDeserializedStructure( void *aStructureData, const SchemaFieldDescriptor *aFieldDescriptors, SerializationContext *aContext )
गड़बड़ी
NL_DLL_EXPORT const char * ErrorStr( int32_t err )
इस रूटीन से, दी गई गड़बड़ी के बारे में जानकारी देने वाली NULL-टर्मिनेटेड C स्ट्रिंग मिलती है, जिसे आसानी से पढ़ा जा सकता है.
ब्यौरा | |||
---|---|---|---|
पैरामीटर |
|
||
लौटाए गए सामान |
दी गई गड़बड़ी के बारे में बताने वाले NULL-टर्मिनेटेड C स्ट्रिंग का पॉइंटर.
|
एक्स्ट्रैक्ट मैन्युफ़ैक्चरिंग की तारीख की क्रम संख्या
WEAVE_ERROR ExtractManufacturingDateFromSerialNumber( const char *serialNum, uint16_t & year, uint8_t & month, uint8_t & day )
FindNullifiedFieldsArray
WEAVE_ERROR FindNullifiedFieldsArray( void *aStructureData, const SchemaFieldDescriptor *aSchemaDescriptor, uint8_t *& aNullifiedFields )
C स्ट्रक्चर के आखिर में शून्य शून्य फ़ील्ड की जगह की जगह पता करने के लिए हेल्पर फ़ंक्शन.
फ़ील्ड के ब्यौरे की श्रेणी के बारे में बताए गए आखिरी सदस्य के बाद, C स्ट्रक्चर के nullified_fields सदस्य के सीधे तौर पर मौजूद होने की उम्मीद है. यह फ़ील्ड डिस्क्रिप्टर की सूची में नहीं है, क्योंकि यह शून्य और इवेंट के क्रिएटर्स और उपभोक्ताओं के लिए एक छिपा उपयोगी इस्तेमाल है. यह स्ट्रक्चर सदस्य ऐसे इवेंट के लिए मौजूद नहीं है जिनमें कोई भी फ़ील्ड शून्य नहीं है. हालांकि, सेटर और गैटर बनाना बिना किसी सीमा के ऐक्सेस होना चाहिए.
ब्यौरा | |||||||
---|---|---|---|---|---|---|---|
पैरामीटर |
|
||||||
सामान लौटाने की वैल्यू |
|
FindStatusReportStr
const char * FindStatusReportStr( uint32_t inProfileId, uint16_t inStatusCode )
पहले हफ़्ते का दिनसाल
uint8_t FirstWeekdayOfYear( uint16_t year )
फ़ॉर्मैट गड़बड़ी
void FormatError( char *buf, uint16_t bufSize, const char *subsys, int32_t err, const char *desc )
दी गई गड़बड़ी के बारे में बताने वाली, NULL (टर्मिनल) स्ट्रिंग की स्ट्रिंग देता है.
ब्यौरा | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
पैरामीटर |
|
GetArrayElementSize
WEAVE_ERROR GetArrayElementSize( uint32_t & aOutSize, const FieldDescriptor *aFieldPtr, SerializedFieldType aType )
GetFlag
bool GetFlag( const FlagsT & inFlags, const FlagT inFlag )
IsBase34NoIOChar
bool IsBase34NoIOChar( char ch )
IsLeapYear
bool IsLeapYear( uint16_t year )
isमान्यFieldType
bool IsValidFieldType( SerializedFieldType aType )
isमान्यSerialNumber
bool IsValidSerialNumber( const char *serialNum )
लॉग इवेंट
nl::Weave::Profiles::DataManagement::event_id_t LogEvent( TEvent *aEvent )
लॉग इवेंट
nl::Weave::Profiles::DataManagement::event_id_t LogEvent( TEvent *aEvent, const nl::Weave::Profiles::DataManagement::EventOptions & aOptions )
ManufacturingWeekToDate
void ManufacturingWeekToDate( uint16_t mfgYear, uint8_t mfgWeek, uint16_t & year, uint8_t & month, uint8_t & day )
मार्च के आधार पर दिन का महीना
uint8_t MarchBasedDayOfYearToMonth( uint16_t dayOfYear )
मार्च के आधार पर महीना/दिन का साल
uint16_t MarchBasedMonthToDayOfYear( uint8_t month )
NullifyAllEventField्स
void NullifyAllEventFields( TEvent *aEvent )
तारीख की तारीख
void OrdinalDateToCalendarDate( uint16_t year, uint16_t dayOfYear, uint8_t & month, uint8_t & dayOfMonth )
ReadDataForType
WEAVE_ERROR ReadDataForType( TLVReader & aReader, void *aStructureData, const FieldDescriptor *& aFieldPtr, SerializedFieldType aType, bool aInArray, SerializationContext *aContext )
स्ट्रक्चर्ड डेटा के आधार पर, TLV से कोई खास एंट्री पढ़ने का रीडर फ़ंक्शन.
ब्यौरा | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
पैरामीटर |
|
||||||||||||
सामान लौटाने की वैल्यू |
|
ReadNullableDataForType
WEAVE_ERROR ReadNullableDataForType( TLVReader & aReader, void *aStructureData, const FieldDescriptor *& aFieldPtr, SerializedFieldType aType, bool & aIsNullified, SerializationContext *aContext )
TLV से पढ़ने से पहले, डेटा की वैल्यू शून्य या शून्य है या नहीं, यह देखने के लिए रीडर फ़ंक्शन.
ब्यौरा | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
पैरामीटर |
|
||||||||||||
सामान लौटाने की वैल्यू |
|
रजिस्टर करने के दौरान गड़बड़ी का फ़ॉर्मैट
NL_DLL_EXPORT void RegisterErrorFormatter( ErrorFormatter *errFormatter )
गड़बड़ी फ़ॉर्मैट करने वाले प्रोग्राम की ग्लोबल सूची में, गड़बड़ी को फ़ॉर्मैट करने वाला नया फ़ंक्शन जोड़ें.
ब्यौरा | |||
---|---|---|---|
पैरामीटर |
|
सेकंड के बाद से EpochToCalendar समय
void SecondsSinceEpochToCalendarTime( uint32_t secondsSinceEpoch, uint16_t & year, uint8_t & month, uint8_t & dayOfMonth, uint8_t & hour, uint8_t & minute, uint8_t & second )
SerializedDataToTLVr
WEAVE_ERROR SerializedDataToTLVWriter( TLVWriter & aWriter, void *aStructureData, const SchemaFieldDescriptor *aFieldDescriptors )
किसी डेटा स्ट्रक्चर को TLV स्ट्रक्चर में बदलने के लिए एक लेखक फ़ंक्शन.
डेटा स्ट्रक्चर को समझने और TLV में लिखने के लिए SchemaFieldDescriptor का इस्तेमाल करता है.
ब्यौरा | |||||||
---|---|---|---|---|---|---|---|
पैरामीटर |
|
||||||
सामान लौटाने की वैल्यू |
|
SerializedDataToTLVWriterसहायता
WEAVE_ERROR SerializedDataToTLVWriterHelper( TLVWriter & aWriter, uint8_t aDataTag, void *aAppData )
रैपर लेखक फ़ंक्शन जो SerializedDataToTLVr को कंटेनर के साथ रखता है.
पास करने के लिए, स्ट्रक्चर स्कीमापॉइंटर पेयर को स्ट्रक्चर डेटा और डिस्क्रिप्टर में भी बांट देता है.
ब्यौरा | |||||||
---|---|---|---|---|---|---|---|
पैरामीटर |
|
||||||
सामान लौटाने की वैल्यू |
|
सेटफ़्लैग
void SetFlag( FlagsT & inFlags, const FlagT inFlag )
सेटफ़्लैग
void SetFlag( FlagsT & inFlags, const FlagT inFlag, const bool inValue )
स्थिति रिपोर्ट
const char * StatusReportStr( uint32_t profileId, uint16_t statusCode )
TLVReaderToDeserializedData
WEAVE_ERROR TLVReaderToDeserializedData( nl::Weave::TLV::TLVReader & aReader, void *aStructureData, const SchemaFieldDescriptor *aFieldDescriptors, SerializationContext *aContext )
TLV को C-स्ट्रक्चर्ड में बदलने के लिए एक रीडर फ़ंक्शन.
डेटा स्ट्रक्चर को समझने के लिए SchemaFieldDescriptor का इस्तेमाल करता है.
यह ज़रूरी है कि अज्ञात फ़ील्ड के बारे में बताया जाए और उसका फ़ील्ड अनुमानित न हो.
ब्यौरा | |||||||||
---|---|---|---|---|---|---|---|---|---|
पैरामीटर |
|
||||||||
सामान लौटाने की वैल्यू |
|
TLVReaderToDeserializedDataHelper
WEAVE_ERROR TLVReaderToDeserializedDataHelper( nl::Weave::TLV::TLVReader & aReader, uint8_t aDataTag, void *aAppData, SerializationContext *aContext )
एक हेल्पर फ़ंक्शन, जो एक TLV डेटा एलिमेंट को हटाता है.
फ़ंक्शन, StructureSchemaPointer निगरानी को स्ट्रक्चर डेटा में बांटता है और पढ़ने वाले लोगों को ReadDataForTypeType में पास करने के लिए बनाता है.
ब्यौरा | |||||||||
---|---|---|---|---|---|---|---|---|---|
पैरामीटर |
|
||||||||
सामान लौटाने की वैल्यू |
|
WriteArrayData
WEAVE_ERROR WriteArrayData( TLVWriter & aWriter, void *aStructureData, const FieldDescriptor *aFieldPtr )
कैटगरी बनाने वाला लेखक फ़ंक्शन.
ब्यौरा | |||||||
---|---|---|---|---|---|---|---|
पैरामीटर |
|
||||||
सामान लौटाने की वैल्यू |
|
TypeDataForType
WEAVE_ERROR WriteDataForType( TLVWriter & aWriter, void *aStructureData, const FieldDescriptor *& aFieldPtr, SerializedFieldType aType, bool aInArray )
एक लेखक फ़ंक्शन, स्ट्रक्चर्ड डेटा के आधार पर TLV में एक खास एंट्री लिखता है.
ब्यौरा | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
पैरामीटर |
|
||||||||||
सामान लौटाने की वैल्यू |
|
TyNullableDataForType
WEAVE_ERROR WriteNullableDataForType( TLVWriter & aWriter, void *aStructureData, const FieldDescriptor *& aFieldPtr, SerializedFieldType aType, bool aIsNullified )
TLV पर लिखने से पहले, यह देखने के लिए एक लेखक फ़ंक्शन कि डेटा शून्य हो सकता है या नहीं.
ब्यौरा | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
पैरामीटर |
|
||||||||||
सामान लौटाने की वैल्यू |
|
सेकंड से सेकंड में
uint32_t secondsToMilliseconds( uint32_t seconds )