Lines Matching refs:Header
108 struct Header {
109 int fTotalLength; // The length of an entry including header, item, and data in TAligns.
173 Header* header = reinterpret_cast<Header*>(
174 reinterpret_cast<TAlign*>(fLastItem) - length_of<Header>::kValue);
175 fTailBlock->fBack -= header->fTotalLength;
178 int lastItemLength = header->fPrevLength;
180 if (!header->fPrevLength) {
192 fLastItem = &(*fTailBlock)[fTailBlock->fBack - lastItemLength + length_of<Header>::kValue];
198 // Find the header of the previous entry and get its length. We need to store that in the new
199 // header for backwards iteration (pop_back()).
202 Header* lastHeader = reinterpret_cast<Header*>(
203 reinterpret_cast<TAlign*>(fLastItem) - length_of<Header>::kValue);
207 const int totalLength = length_of<Header>::kValue + length_of<TItem>::kValue + dataLength;
221 Header* header = reinterpret_cast<Header*>(&(*fTailBlock)[fTailBlock->fBack]);
222 void* rawPtr = &(*fTailBlock)[fTailBlock->fBack + length_of<Header>::kValue];
224 header->fTotalLength = totalLength;
225 header->fPrevLength = prevLength;
265 Header* header = reinterpret_cast<Header*>(&(*fBlock)[fPosition]);
266 fItem = reinterpret_cast<TBase*>(&(*fBlock)[fPosition + length_of<Header>::kValue]);
267 fPosition += header->fTotalLength;
300 Header* lastHeader = reinterpret_cast<Header*>(
301 reinterpret_cast<TAlign*>(fItem) - length_of<Header>::kValue);
306 Header* header = reinterpret_cast<Header*>(&(*fBlock)[fPosition]);
317 fPosition -= header->fPrevLength;
320 fItem = reinterpret_cast<TBase*>(&(*fBlock)[fPosition + length_of<Header>::kValue]);