17void circular_raw_ostream::write_impl(
const char *
Ptr,
size_t Size) {
18 if (BufferSize == 0) {
26 std::min(
unsigned(
Size),
unsigned(BufferSize - (Cur - BufferArray)));
27 memcpy(Cur,
Ptr, Bytes);
30 if (Cur == BufferArray + BufferSize) {
39 if (BufferSize != 0) {
41 TheStream->
write(Banner, std::strlen(Banner));
void flushBufferWithBanner()
flushBufferWithBanner - Force output of the buffer along with a small header.
raw_ostream & write(unsigned char C)
This is an optimization pass for GlobalISel generic memory operations.