Lines Matching refs:integer
15 void SnapshotByteSink::PutInt(uintptr_t integer, const char* description) {
16 DCHECK_LT(integer, 1 << 30);
17 integer <<= 2;
19 if (integer > 0xFF) bytes = 2;
20 if (integer > 0xFFFF) bytes = 3;
21 if (integer > 0xFFFFFF) bytes = 4;
22 integer |= (bytes - 1);
23 Put(static_cast<byte>(integer & 0xFF), "IntPart1");
24 if (bytes > 1) Put(static_cast<byte>((integer >> 8) & 0xFF), "IntPart2");
25 if (bytes > 2) Put(static_cast<byte>((integer >> 16) & 0xFF), "IntPart3");
26 if (bytes > 3) Put(static_cast<byte>((integer >> 24) & 0xFF), "IntPart4");