mirror of
https://gitee.com/openharmony/distributeddatamgr_udmf
synced 2024-10-07 13:53:49 +00:00
commit
bb6c0d9c37
@ -466,6 +466,9 @@ private:
|
||||
|
||||
inline bool HasExpectBuffer(const uint32_t expectLen) const
|
||||
{
|
||||
if (buffer_== nullptr) {
|
||||
return false;
|
||||
}
|
||||
return buffer_->size() >= cursor_ && buffer_->size() - cursor_ >= expectLen;
|
||||
}
|
||||
|
||||
|
@ -20,6 +20,9 @@ namespace TLVUtil {
|
||||
template<>
|
||||
bool CountBufferSize(const std::shared_ptr<UnifiedRecord> &input, TLVObject &data)
|
||||
{
|
||||
if (input == nullptr) {
|
||||
return false;
|
||||
}
|
||||
data.Count(input->GetType());
|
||||
data.Count(input->GetUid());
|
||||
auto type = input->GetType();
|
||||
|
Loading…
Reference in New Issue
Block a user