• Home
  • Raw
  • Download

Lines Matching refs:out

28 static size_t writeU16(uint16_t x, uint8_t* out, size_t offset) {  in writeU16()  argument
29 out[offset] = x >> 8; in writeU16()
30 out[offset + 1] = x; in writeU16()
34 static size_t writeU32(uint32_t x, uint8_t* out, size_t offset) { in writeU32() argument
35 out[offset] = x >> 24; in writeU32()
36 out[offset + 1] = x >> 16; in writeU32()
37 out[offset + 2] = x >> 8; in writeU32()
38 out[offset + 3] = x; in writeU32()
50 std::vector<uint8_t> out(46); in buildHeadTable() local
51 size_t head = writeU16(1, out.data(), 0); // major version in buildHeadTable()
52 head = writeU16(0, out.data(), head); // minor version in buildHeadTable()
53 head = writeU32(fontRevision, out.data(), head); // fontRevision in buildHeadTable()
54 head = writeU32(0xB1B0AFBA, out.data(), head); // checksum. (random value) in buildHeadTable()
55 head = writeU32(0x5F0F3CF5, out.data(), head); // magicNumber in buildHeadTable()
56 head = writeU16(0, out.data(), head); // flasgs in buildHeadTable()
57 head = writeU16(1024, out.data(), head); // unitsPerEm in buildHeadTable()
58 head = writeU32(123457890, out.data(), head); // created (random value) in buildHeadTable()
59 head = writeU32(123457890, out.data(), head); // modified (random value) in buildHeadTable()
60 head = writeU16(0, out.data(), head); // xMin in buildHeadTable()
61 head = writeU16(100, out.data(), head); // yMin in buildHeadTable()
62 head = writeU16(1024, out.data(), head); // xMax in buildHeadTable()
63 head = writeU16(2048, out.data(), head); // yMax in buildHeadTable()
64 head = writeU16(0, out.data(), head); // macStyle in buildHeadTable()
65 head = writeU16(10, out.data(), head); // lowestRecPPEM in buildHeadTable()
66 head = writeU16(1, out.data(), head); // fontDirectionHint in buildHeadTable()
67 head = writeU16(1, out.data(), head); // indexToLocFormat in buildHeadTable()
68 head = writeU16(0, out.data(), head); // glyphDataFormat; in buildHeadTable()
70 return out; in buildHeadTable()
77 uint32_t out = 0; in TEST() local
78 EXPECT_TRUE(TestableFontFileParser::analyzeFontRevision(head.data(), head.size(), &out)); in TEST()
79 EXPECT_EQ(rev, out); in TEST()
86 uint32_t out = 0; in TEST() local
87 EXPECT_FALSE(TestableFontFileParser::analyzeFontRevision(head.data(), 6, &out)); in TEST()