buffer.c revision 8e361d2906b0e44f7175a20981f8d2280645b58b
/* Copyright (c) 2002-2009 Dovecot authors, see the included COPYING file */
/* @UNSAFE: whole file */
#include "lib.h"
#include "buffer.h"
struct real_buffer {
/* public: */
const unsigned char *r_buffer;
/* private: */
unsigned char *w_buffer;
unsigned int alloced:1;
unsigned int dynamic:1;
};
{
return;
}
static inline void
{
}
/* clear used..dirty area */
}
}
new_size));
}
}
{
struct real_buffer *buf;
}
{
struct real_buffer *buf;
}
{
struct real_buffer *buf;
}
{
struct real_buffer *buf;
}
{
}
{
void *data;
return data;
}
{
}
{
buffer_set_used_size(buf, 0);
}
{
}
{
}
{
}
{
else {
}
}
{
return;
/* delete from between */
} else {
/* delete the rest of the buffer */
end_size = 0;
}
}
{
}
{
}
{
else {
}
}
{
} else {
}
}
{
}
{
}
{
}
{
if (used_size_r != NULL)
}
{
}
{
}
{
return FALSE;
}