Home | History | Annotate | Download | only in core

Lines Matching refs:buffer

21     #define VSNPRINTF(buffer, size, format, args) \
22 _vsnprintf_s(buffer, size, _TRUNCATE, format, args)
29 #define ARGS_TO_BUFFER(format, buffer, size) \
33 VSNPRINTF(buffer, size, format, args); \
74 char buffer[SkStrAppendS32_MaxSize];
75 char* p = buffer + sizeof(buffer);
92 SkASSERT(p >= buffer);
93 char* stop = buffer + sizeof(buffer);
104 char buffer[SkStrAppendS64_MaxSize];
105 char* p = buffer + sizeof(buffer);
127 SkASSERT(p >= buffer);
128 size_t cp_len = buffer + sizeof(buffer) - p;
140 char buffer[SkStrAppendScalar_MaxSize + 1];
141 int len = SNPRINTF(buffer, sizeof(buffer), gFormat, value);
142 memcpy(string, buffer, len);
365 // just use less of the buffer without allocating a smaller one
431 do it in place, rather than allocating a new buffer.
472 char buffer[kMaxBytesInUTF8Sequence];
473 size_t len = SkUTF8_FromUnichar(uni, buffer);
476 this->insert(offset, buffer, len);
481 char buffer[SkStrAppendS32_MaxSize];
482 char* stop = SkStrAppendS32(buffer, dec);
483 this->insert(offset, buffer, stop - buffer);
487 char buffer[SkStrAppendS64_MaxSize];
488 char* stop = SkStrAppendS64(buffer, dec, minDigits);
489 this->insert(offset, buffer, stop - buffer);
497 char buffer[8];
498 char* p = buffer + sizeof(buffer);
510 SkASSERT(p >= buffer);
511 this->insert(offset, p, buffer + sizeof(buffer) - p);
515 char buffer[SkStrAppendScalar_MaxSize];
516 char* stop = SkStrAppendScalar(buffer, value);
517 this->insert(offset, buffer, stop - buffer);
521 char buffer[kBufferSize];
522 ARGS_TO_BUFFER(format, buffer, kBufferSize);
524 this->set(buffer, strlen(buffer));
528 char buffer[kBufferSize];
529 ARGS_TO_BUFFER(format, buffer, kBufferSize);
531 this->append(buffer, strlen(buffer));
535 char buffer[kBufferSize];
536 ARGS_TO_BUFFER(format, buffer, kBufferSize);
538 this->prepend(buffer, strlen(buffer));
607 char buffer[kBufferSize];
608 ARGS_TO_BUFFER(format, buffer, kBufferSize);
609 formattedOutput.set(buffer);