Lines Matching refs:head
73 size_t head = 0;
74 head = writeU16(4, out.data(), head); // format
75 head = writeU16(finalLength, out.data(), head); // length
76 head = writeU16(0, out.data(), head); // langauge
80 head = writeU16(segmentCount * 2, out.data(), head); // segCountX2
81 head = writeU16(searchRange, out.data(), head); // searchRange
82 head = writeU16(__builtin_ctz(searchRange) - 1, out.data(), head); // entrySelector
83 head = writeU16(segmentCount * 2 - searchRange, out.data(), head); // rangeShift
85 size_t endCountHead = head;
86 size_t startCountHead = head + segmentCount * sizeof(uint16_t) + 2 /* padding */;
122 size_t head = 0;
123 head = writeU16(12, out.data(), head); // format
124 head = writeU16(0, out.data(), head); // reserved
125 head = writeU32(finalLength, out.data(), head); // length
126 head = writeU32(0, out.data(), head); // langauge
127 head = writeU32(numGroups, out.data(), head); // numGroups
132 head = writeU32(start, out.data(), head);
133 head = writeU32(end, out.data(), head);
138 head = writeU32(start, out.data(), head);
141 LOG_ALWAYS_FATAL_IF(head != finalLength);
159 size_t head = 0;
160 head = writeU32(numOfRanges, out.data(), head);
164 head = writeU24(startUnicodeValue, out.data(), head);
165 head = writeU8(endUnicodeValue - startUnicodeValue, out.data(), head);
167 LOG_ALWAYS_FATAL_IF(head != length);
179 size_t head = 0;
180 head = writeU32(nonDefaultUVS.size(), out.data(), head);
182 head = writeU24(codePoint, out.data(), head);
183 head = writeU16(4 /* fixed glyph id */, out.data(), head);
185 LOG_ALWAYS_FATAL_IF(head != length);
198 size_t head = 0;
199 head = writeU16(14, out.data(), head); // format
200 head += sizeof(uint32_t); // length will be filled later
201 head = writeU32(vsRecords.size(), out.data(), head); // numVarSelectorRecords;
205 head = writeU24(vsCodePoint, out.data(), head);
209 head = writeU32(0, out.data(), head);
211 head = writeU32(out.size(), out.data(), head);
217 head = writeU32(0, out.data(), head);
219 head = writeU32(out.size(), out.data(), head);
223 LOG_ALWAYS_FATAL_IF(head != headerLength);
273 size_t head = writeU16(platformId, out.data(), currentEncodingTableHead);
274 head = writeU16(encodingId, out.data(), head);
275 head = writeU32(offset, out.data(), head);
276 LOG_ALWAYS_FATAL_IF((head - currentEncodingTableHead) != kEncodingTableSize);