Lines Matching defs:str
194 int RingBuffer::Put(const char* str, const std::size_t len)
196 if (str == nullptr) {
215 if (memcpy_s(buffer_ + tail_, bufSize_ - tail_, str, len) != EOK) {
220 if (memcpy_s(buffer_ + tail_, bufSize_ - tail_, str, bufSize_ - tail_) != EOK) {
223 if (memcpy_s(buffer_, bufSize_, str + bufSize_ - tail_, len + tail_ - bufSize_) != EOK) {
235 int RingBuffer::Put(const std::string& str)
237 if (str.empty()) {
240 std::size_t len = str.length();
257 if (memcpy_s(buffer_ + tail_, bufSize_ - tail_, str.c_str(), len) != EOK) {
262 if (memcpy_s(buffer_ + tail_, bufSize_ - tail_, str.c_str(), bufSize_ - tail_) != EOK) {
265 if (memcpy_s(buffer_, bufSize_, str.c_str() + bufSize_ - tail_, len + tail_ - bufSize_) != EOK) {