*
*/
-
-#include "config.h"
-#include <string.h>
+#include "squid.h"
#include "protos.h"
#include "base/TextException.h"
#include "ipc/TypedMsgHdr.h"
+#include <string.h>
+
Ipc::TypedMsgHdr::TypedMsgHdr()
{
xmemset(this, 0, sizeof(*this));
offset = 0;
}
-
-
int
Ipc::TypedMsgHdr::type() const
{
void
Ipc::TypedMsgHdr::getRaw(void *raw, size_t size) const
{
- Must(size >= 0);
if (size > 0) {
Must(size <= data.size - offset);
memcpy(raw, data.raw + offset, size);
void
Ipc::TypedMsgHdr::putRaw(const void *raw, size_t size)
{
- Must(size >= 0);
if (size > 0) {
Must(size <= sizeof(data.raw) - data.size);
memcpy(data.raw + data.size, raw, size);