bin/varnishd/hpack/vhp_table.c
static void
vht_appendname(struct vht_table *tbl, const char *buf, size_t len)
{
	struct vht_entry *e;

	CHECK_OBJ_NOTNULL(tbl, VHT_TABLE_MAGIC);
	e = TBLENTRY(tbl, 0);
	CHECK_OBJ_NOTNULL(e, VHT_ENTRY_MAGIC);
	AZ(e->valuelen);	/* Name needs to be set before value */
	assert(TBLSIZE(tbl) + len <= tbl->maxsize);
	assert(e->offset + e->namelen == tbl->size);
	memcpy(tbl->buf + tbl->size, buf, len);
	e->namelen += len;
	tbl->size += len;
}
/* Append len bytes from buf to entry 0 name. Asserts if no space. */
Append len bytes from buf to entry 0 name. Asserts if no space.
Append len bytes from buf to entry 0 name . Asserts if no space .
static void
vht_appendname(struct vht_table *tbl, const char *buf, size_t len)
{
	struct vht_entry *e;
	CHECK_OBJ_NOTNULL(tbl, VHT_TABLE_MAGIC);
	e = TBLENTRY(tbl, 0);
	CHECK_OBJ_NOTNULL(e, VHT_ENTRY_MAGIC);
	AZ(e->valuelen);	
	assert(TBLSIZE(tbl) + len <= tbl->maxsize);
	assert(e->offset + e->namelen == tbl->size);
	memcpy(tbl->buf + tbl->size, buf, len);
	e->namelen += len;
	tbl->size += len;
}
static void vht_appendname ( struct vht_table * tbl , const char * buf , size_t len ) { struct vht_entry * e ; CHECK_OBJ_NOTNULL ( tbl , VHT_TABLE_MAGIC ) ; e = TBLENTRY ( tbl , 0 ) ; CHECK_OBJ_NOTNULL ( e , VHT_ENTRY_MAGIC ) ; AZ ( e -> valuelen ) ; assert ( TBLSIZE ( tbl ) + len <= tbl -> maxsize ) ; assert ( e -> offset + e -> namelen == tbl -> size ) ; memcpy ( tbl -> buf + tbl -> size , buf , len ) ; e -> namelen += len ; tbl -> size += len ; }
Append len bytes from buf to entry 0 name.
Append len bytes from buf to entry 0 name .
/* Name needs to be set before value */