/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/communicator/src/ |
H A D | data_buffer.cpp | 22 DataBuffer::DataBuffer() : buf_(nullptr), size_(0), used_(0) in DataBuffer() 27 if (buf_ != nullptr) { in ~DataBuffer() 28 delete[] buf_; in ~DataBuffer() 29 buf_ = nullptr; in ~DataBuffer() 35 if (buf_ != nullptr || size == 0) { in Init() 39 buf_ = new(std::nothrow) char[size_](); in Init() 40 if (buf_ == nullptr) { in Init() 49 return buf_; in GetBufPtr()
|
H A D | data_buffer.h | 61 char *buf_; member in OHOS::AppDistributedKv::DataBuffer
|
/foundation/resourceschedule/ffrt/src/util/ |
H A D | spmc_queue.cpp | 23 if (buf_ != nullptr) { in ~SpmcQueue() 24 free(buf_); in ~SpmcQueue() 25 buf_ = nullptr; in ~SpmcQueue() 35 buf_ = reinterpret_cast<void**>(malloc(capacity * sizeof(void*))); in Init() 36 if (buf_ == nullptr) { in Init() 57 if (buf_ == nullptr) { in PopHead() 68 void* res = buf_[head % capacity_]; in PopHead() 77 if (buf_ == nullptr) { in PushTail() 84 buf_[tail % capacity_] = object; in PushTail() 94 if (buf_ in FindElement() [all...] |
H A D | spmc_queue.h | 68 void** buf_ = nullptr; member in ffrt::SpmcQueue
|
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gavdp/ |
H A D | a2dp_shared_buffer.cpp | 46 if (memcpy_s(buf, len, buf_, len) != EOK) { in Read() 50 if (memcpy_s(shiftBuf_, cap_, buf_ + len, size_) != EOK) { in Read() 53 if (memcpy_s(buf_, cap_, shiftBuf_, size_) != EOK) { in Read() 75 if (memcpy_s(buf_ + size_, cap_ - size_, buf, len) != EOK) { in Write() 87 if (memset_s(buf_, cap_, 0, cap_) != EOK) { in Reset()
|
H A D | a2dp_shared_buffer.h | 34 uint8_t buf_[A2DP_SBC_MAX_PACKET_SIZE * FRAME_THREE] = {}; member in OHOS::bluetooth::A2dpSharedBuffer
|
/foundation/arkui/ace_engine/frameworks/base/log/ |
H A D | dump_log.h | 67 DumpFile(FILE* file) : std::ostream(0), buf_(file) in DumpFile() 69 rdbuf(&buf_); in DumpFile() 72 DumpFileBuf buf_; member in OHOS::Ace::DumpLog::DumpFile
|
/foundation/multimedia/image_framework/plugins/common/libs/image/libjpegplugin/src/ |
H A D | exif_info.cpp | 1567 : buf_(fileBuf), bufferLength_(bufferLength) in ByteOrderedBuffer() 1850 return ((static_cast<unsigned int>(buf_[curPosition_ - CONSTANT_4]) << MOVE_OFFSET_24) | in ReadInt32() 1851 (static_cast<unsigned int>(buf_[curPosition_ - CONSTANT_3]) << MOVE_OFFSET_16) | in ReadInt32() 1852 (static_cast<unsigned int>(buf_[curPosition_ - CONSTANT_2]) << MOVE_OFFSET_8) | in ReadInt32() 1853 static_cast<unsigned int>(buf_[curPosition_ - 1])); in ReadInt32() 1855 return ((static_cast<unsigned int>(buf_[curPosition_ - 1]) << MOVE_OFFSET_24) | in ReadInt32() 1856 (static_cast<unsigned int>(buf_[curPosition_ - CONSTANT_2]) << MOVE_OFFSET_16) | in ReadInt32() 1857 (static_cast<unsigned int>(buf_[curPosition_ - CONSTANT_3]) << MOVE_OFFSET_8) | in ReadInt32() 1858 static_cast<unsigned int>(buf_[curPosition_ - CONSTANT_4])); in ReadInt32() 1877 return ((static_cast<unsigned int>(buf_[curPosition in ReadShort() [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/ |
H A D | parcel.cpp | 28 : buf_(inBuf), in Parcel() 39 buf_ = nullptr; in ~Parcel()
|
/foundation/multimedia/image_framework/plugins/common/libs/image/libjpegplugin/include/ |
H A D | exif_info.h | 180 const uint8_t *buf_; member in OHOS::ImagePlugin::ByteOrderedBuffer
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/include/ |
H A D | parcel.h | 182 uint8_t *buf_ = nullptr; member in DistributedDB::Parcel
|