Lines Matching refs:buf
654 char buf[len]; // NOLINT(*-avoid-c-arrays) member
660 bool isOnStack() const noexcept { return (buf[last] & 128) == 0; } in isOnStack()
694 return reinterpret_cast<char*>(buf); in c_str()
3653 buf[sz] = '\0';
3655 return buf;
3666 void String::setOnHeap() noexcept { *reinterpret_cast<unsigned char*>(&buf[last]) = 128; }
3667 void String::setLast(size_type in) noexcept { buf[last] = char(in); }
3669 if (isOnStack()) { buf[sz] = '\0'; setLast(last - sz); }
3675 memcpy(buf, other.buf, len);
3682 buf[0] = '\0';
3722 memcpy(buf + my_old_size, other.c_str(), other_size + 1);
3729 memcpy(temp, buf, my_old_size); // skip the +1 ('\0') for speed
3766 memcpy(buf, other.buf, len);
3767 other.buf[0] = '\0';
3775 memcpy(buf, other.buf, len);
3776 other.buf[0] = '\0';
3788 return reinterpret_cast<char*>(buf)[i];
3795 return last - (size_type(buf[last]) & 31); // using "last" would work only if "len" is 32
6830 char buf[1024];
6836 setp(std::begin(buf), std::end(buf));