ส่งความคิดเห็น
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
nl:: Weave:: Profiles:: ReferencedString
#include <src/lib/profiles/common/WeaveMessage.h>
วิธีจัดการสตริงใน Weave มีดังนี้
สรุป
คลาสนี้มีตัวแปร 8 บิตและ 16 บิต
การสืบทอด
รับค่าจาก
nl::Weave::Profiles::RetainedPacketBuffer
ผู้ผลิตและผู้ทำลาย
ReferencedString (void)
ตัวสร้างที่ไม่มีอาร์กิวเมนต์สำหรับสตริงที่อ้างอิง
แอตทริบิวต์สาธารณะ
isShort
bool isShort
theLength
uint16_t theLength
theString
char * theString
ฟังก์ชันสาธารณะ
ReferencedString
ReferencedString(
void
)
ตัวสร้างที่ไม่มีอาร์กิวเมนต์สำหรับสตริงที่อ้างอิง
init
WEAVE_ERROR init(
uint16_t aLength,
char *aString,
System::PacketBuffer *aBuffer
)
init
WEAVE_ERROR init(
uint16_t aLength,
char *aString
)
init
WEAVE_ERROR init(
uint8_t aLength,
char *aString,
System::PacketBuffer *aBuffer
)
init
WEAVE_ERROR init(
uint8_t aLength,
char *aString
)
โอเปอเรเตอร์==
bool operator==(
const ReferencedString &
) const
รายละเอียด
พารามิเตอร์
&aReferencedString
สตริงที่ต้องตรวจสอบ
แสดงผลค่า
true
สตริงมีค่าเท่ากัน
false
สตริงไม่เท่ากัน
printString
char * printString(
void
)
รายละเอียด
การส่งคืน
สตริงที่พิมพ์ได้
ฟังก์ชันแบบคงที่แบบสาธารณะ
parse
WEAVE_ERROR parse(
MessageIterator &,
ReferencedString &
)
รายละเอียด
พารามิเตอร์
&i
ตัววนซ้ำเหนือข้อความที่กำลังแยกวิเคราะห์
&aString
ตำแหน่งสำหรับป้อนผลลัพธ์ของการแยกวิเคราะห์
แสดงผลค่า
WEAVE_NO_ERROR
แยกวิเคราะห์สตริงสำเร็จแล้ว
WEAVE_ERROR_INVALID_STRING_LENGTH
สตริงยาวเกินไปสำหรับบัฟเฟอร์ (ซึ่งไม่ควรเกิดขึ้น)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates. The OPENTHREAD and related marks are trademarks of the Thread Group and are used under license.
อัปเดตล่าสุด 2023-12-02 UTC
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"ไม่มีข้อมูลที่ฉันต้องการ"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"ล้าสมัย"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"ปัญหาเกี่ยวกับการแปล"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"อื่นๆ"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"เข้าใจง่าย"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"แก้ปัญหาของฉันได้"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"อื่นๆ"
}]
หากต้องการบอกให้เราทราบเพิ่มเติม