Lines Matching refs:head

76     size_t head = 0;  in buildCmapFormat4Table()  local
77 head = writeU16(4, out.data(), head); // format in buildCmapFormat4Table()
78 head = writeU16(finalLength, out.data(), head); // length in buildCmapFormat4Table()
79 head = writeU16(0, out.data(), head); // langauge in buildCmapFormat4Table()
83 head = writeU16(segmentCount * 2, out.data(), head); // segCountX2 in buildCmapFormat4Table()
84 head = writeU16(searchRange, out.data(), head); // searchRange in buildCmapFormat4Table()
85 head = writeU16(__builtin_ctz(searchRange) - 1, out.data(), head); // entrySelector in buildCmapFormat4Table()
86 head = writeU16(segmentCount * 2 - searchRange, out.data(), head); // rangeShift in buildCmapFormat4Table()
88 size_t endCountHead = head; in buildCmapFormat4Table()
89 size_t startCountHead = head + segmentCount * sizeof(uint16_t) + 2 /* padding */; in buildCmapFormat4Table()
126 size_t head = 0; in buildCmapFormat12Table() local
127 head = writeU16(12, out.data(), head); // format in buildCmapFormat12Table()
128 head = writeU16(0, out.data(), head); // reserved in buildCmapFormat12Table()
129 head = writeU32(finalLength, out.data(), head); // length in buildCmapFormat12Table()
130 head = writeU32(0, out.data(), head); // langauge in buildCmapFormat12Table()
131 head = writeU32(numGroups, out.data(), head); // numGroups in buildCmapFormat12Table()
136 head = writeU32(start, out.data(), head); in buildCmapFormat12Table()
137 head = writeU32(end, out.data(), head); in buildCmapFormat12Table()
142 head = writeU32(start, out.data(), head); in buildCmapFormat12Table()
145 LOG_ALWAYS_FATAL_IF(head != finalLength); in buildCmapFormat12Table()
163 size_t head = 0; in getDefaultUVSAsBinary() local
164 head = writeU32(numOfRanges, out.data(), head); in getDefaultUVSAsBinary()
168 head = writeU24(startUnicodeValue, out.data(), head); in getDefaultUVSAsBinary()
169 head = writeU8(endUnicodeValue - startUnicodeValue, out.data(), head); in getDefaultUVSAsBinary()
171 LOG_ALWAYS_FATAL_IF(head != length); in getDefaultUVSAsBinary()
183 size_t head = 0; in getNonDefaultUVSAsBinary() local
184 head = writeU32(nonDefaultUVS.size(), out.data(), head); in getNonDefaultUVSAsBinary()
186 head = writeU24(codePoint, out.data(), head); in getNonDefaultUVSAsBinary()
187 head = writeU16(4 /* fixed glyph id */, out.data(), head); in getNonDefaultUVSAsBinary()
189 LOG_ALWAYS_FATAL_IF(head != length); in getNonDefaultUVSAsBinary()
201 size_t head = 0; in buildCmapFormat14Table() local
202 head = writeU16(14, out.data(), head); // format in buildCmapFormat14Table()
203 head += sizeof(uint32_t); // length will be filled later in buildCmapFormat14Table()
204 head = writeU32(vsRecords.size(), out.data(), head); // numVarSelectorRecords; in buildCmapFormat14Table()
208 head = writeU24(vsCodePoint, out.data(), head); in buildCmapFormat14Table()
212 head = writeU32(0, out.data(), head); in buildCmapFormat14Table()
214 head = writeU32(out.size(), out.data(), head); in buildCmapFormat14Table()
220 head = writeU32(0, out.data(), head); in buildCmapFormat14Table()
222 head = writeU32(out.size(), out.data(), head); in buildCmapFormat14Table()
226 LOG_ALWAYS_FATAL_IF(head != headerLength); in buildCmapFormat14Table()
275 size_t head = writeU16(platformId, out.data(), currentEncodingTableHead); in appendEncodingTable() local
276 head = writeU16(encodingId, out.data(), head); in appendEncodingTable()
277 head = writeU32(offset, out.data(), head); in appendEncodingTable()
278 LOG_ALWAYS_FATAL_IF((head - currentEncodingTableHead) != kEncodingTableSize); in appendEncodingTable()