37 HttpHeader
this = _this;
41 name = va_arg(* params,
char *);
42 this->nname = va_arg(* params,
size_t);
43 value = va_arg(* params,
char *);
44 this->nvalue[0] = va_arg(* params,
size_t);
47 this->name[this->nname] = 0;
48 memcpy(this->name, name, this->nname);
50 this->hash =
sdbm((
unsigned char *)name, this->nname);
52 (this->value)[0] =
memMalloc((this->nvalue)[0] + 1);
53 (this->value)[0][(this->nvalue)[0]] = 0;
54 memcpy((this->value)[0], value, (this->nvalue)[0]);
56 this->
size = this->nname + 2 + (this->nvalue)[0] + 2;
65 HttpHeader
this = _this;
70 for (i=0; i<this->cvalue; i++) {
79 HttpHeader
this = _this;
88 HttpHeader
this = _this;
89 HttpHeader doub = _double;
96 (this->nvalue)[this->cvalue] = (doub->nvalue)[0];
97 (this->value)[(this->cvalue)++] = (doub->value)[0];
98 this->
size += doub->size;
99 (doub->value)[0] = NULL;
unsigned long sdbm(const unsigned char *, size_t)