Đặt điểm đến sau bất kỳ dữ liệu nào hiện có trong vùng đệm.
finishWriting
void finishWriting(
void
)
Điều chỉnh vùng đệm sau khi ghi.
hasData
bool hasData(
uint16_t
)
Thông tin chi tiết
Các tham số
inc
Số nguyên có thể đọc được từ vùng đệm.
Giá trị trả về
true
Độ dài dữ liệu hiện tại của vùng đệm lớn hơn hoặc bằng giá trị gia số cho trước.
false
Nếu không.
hasRoom
bool hasRoom(
uint16_t
)
Thông tin chi tiết
Các tham số
inc
Một số nguyên có thể được ghi vào vùng đệm.
Giá trị trả về
true
Chênh lệch giữa độ dài dữ liệu hiện tại và độ dài dữ liệu tối đa cho phép của vùng đệm (độ dài dữ liệu có sẵn của vùng đệm) nhỏ hơn hoặc bằng mức tăng đã cho.
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.
Cập nhật lần gần đây nhất: 2023-12-02 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Thiếu thông tin tôi cần"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Quá phức tạp/quá nhiều bước"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Đã lỗi thời"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"Vấn đề về bản dịch"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Vấn đề về mẫu/mã"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Khác"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Dễ hiểu"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Giúp tôi giải quyết được vấn đề"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Khác"
}]