Lines Matching defs:header
552 // Write header.
554 ResStringPool_header* header =
556 if (header == NULL) {
560 memset(header, 0, sizeof(*header));
561 header->header.type = htods(RES_STRING_POOL_TYPE);
562 header->header.headerSize = htods(sizeof(*header));
563 header->header.size = htodl(pool->getSize());
564 header->stringCount = htodl(ENTRIES);
565 header->styleCount = htodl(STYLES);
567 header->flags |= htodl(ResStringPool_header::UTF8_FLAG);
569 header->stringsStart = htodl(preSize);
570 header->stylesStart = htodl(STYLES > 0 ? (preSize+strPos) : 0);
574 uint32_t* index = (uint32_t*)(header+1);