Lines Matching refs:buffer
84 PKG_LOGE("insufficient buffer capacity");
99 if (data.buffer == nullptr) {
101 data.buffer = data.data.data();
103 readLen = fread(data.buffer, 1, needRead, stream_);
126 size_t len = fwrite(data.buffer, size, 1, stream_);
128 PKG_LOGE("Write buffer fail");
220 PKG_LOGE("insufficient buffer capacity");
226 data.buffer = memMap_ + start;
228 if (memcpy_s(data.buffer, needRead, memMap_ + start, readLen) != EOK) {
253 int32_t ret = memcpy_s(memMap_ + currOffset_, memSize_ - currOffset_, data.buffer, size);
307 if (data.buffer == nullptr) {
309 data.buffer = data.data.data();
313 uint8_t *buffer = nullptr;
316 if (ReadFromRingBuf(buffer, needRead - readLen, readOnce) != PKG_SUCCESS) {
320 if (buffer == nullptr || readOnce == 0) {
324 if (memcpy_s(data.buffer + readLen, readOnce, buffer, readOnce) != EOK) {
368 if (ringBuf_->Push(data.buffer, size)) {
372 PKG_LOGE("Write ring buffer fail");