19 #ifndef PAGESPEED_KERNEL_UTIL_CIRCULAR_BUFFER_H_
20 #define PAGESPEED_KERNEL_UTIL_CIRCULAR_BUFFER_H_
26 namespace net_instaweb {
49 static int Sizeof(
const int capacity) {
58 bool Write(
const StringPiece& message);
68 StringPiece FirstChunk();
70 StringPiece SecondChunk();
static int Sizeof(const int capacity)
Definition: circular_buffer.h:49
static CircularBuffer * Create(const int capacity)
Instantiate buffer with malloc.
Definition: circular_buffer.h:32
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
GoogleString ToString(MessageHandler *handler)
Return data content as string.
static CircularBuffer * Init(bool parent, void *block, const int block_size, const int capacity)
Definition: message_handler.h:39
bool Write(const StringPiece &message)
Write message to buffer.