本文整理汇总了C++中CompactBufferReader::readUnsigned方法的典型用法代码示例。如果您正苦于以下问题:C++ CompactBufferReader::readUnsigned方法的具体用法?C++ CompactBufferReader::readUnsigned怎么用?C++ CompactBufferReader::readUnsigned使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CompactBufferReader
的用法示例。
在下文中一共展示了CompactBufferReader::readUnsigned方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: read
bool read() {
if (!reader_.more())
return false;
offset_ = reader_.readUnsigned();
extOffset_ = reader_.readUnsigned();
return true;
}
示例2: JitSpew
RResumePoint::RResumePoint(CompactBufferReader &reader)
{
pcOffset_ = reader.readUnsigned();
numOperands_ = reader.readUnsigned();
JitSpew(JitSpew_IonSnapshots, "Read RResumePoint (pc offset %u, nslots %u)",
pcOffset_, numOperands_);
}
示例3: while
static void
TraceDataRelocations(JSTracer *trc, uint8 *buffer, CompactBufferReader &reader)
{
while (reader.more()) {
size_t offset = reader.readUnsigned();
void **ptr = JSC::X86Assembler::getPointerRef(buffer + offset);
// No barrier needed since these are constants.
gc::MarkThingOrValueUnbarriered(trc, reinterpret_cast<uintptr_t *>(ptr), "imm-gc-word");
}
}
示例4: switch
void
RInstruction::readRecoverData(CompactBufferReader &reader, RInstructionStorage *raw)
{
uint32_t op = reader.readUnsigned();
switch (Opcode(op)) {
# define MATCH_OPCODES_(op) \
case Recover_##op: \
static_assert(sizeof(R##op) <= sizeof(RInstructionStorage), \
"Storage space is too small to decode R" #op " instructions."); \
new (raw->addr()) R##op(reader); \
break;
RECOVER_OPCODE_LIST(MATCH_OPCODES_)
# undef MATCH_OPCODES_
case Recover_Invalid:
default:
MOZ_CRASH("Bad decoding of the previous instruction?");
}
}
示例5:
RArrayState::RArrayState(CompactBufferReader &reader)
{
numElements_ = reader.readUnsigned();
}
示例6: AllocatingBehaviour
RNewArray::RNewArray(CompactBufferReader &reader)
{
count_ = reader.readUnsigned();
allocatingBehaviour_ = AllocatingBehaviour(reader.readByte());
}
示例7:
RHypot::RHypot(CompactBufferReader& reader)
: numOperands_(reader.readUnsigned())
{ }