当前位置: 首页>>代码示例>>C++>>正文


C++ CompactBufferReader::readUnsigned方法代码示例

本文整理汇总了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;
 }
开发者ID:AlexOreshkevich,项目名称:mongo,代码行数:7,代码来源:Assembler-x64.cpp

示例2: JitSpew

RResumePoint::RResumePoint(CompactBufferReader &reader)
{
    pcOffset_ = reader.readUnsigned();
    numOperands_ = reader.readUnsigned();
    JitSpew(JitSpew_IonSnapshots, "Read RResumePoint (pc offset %u, nslots %u)",
            pcOffset_, numOperands_);
}
开发者ID:msliu,项目名称:gecko-dev,代码行数:7,代码来源:Recover.cpp

示例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");
    }
}
开发者ID:rpearl,项目名称:ionmonkey-range-analysis,代码行数:11,代码来源:Assembler-x86-shared.cpp

示例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?");
    }
}
开发者ID:msliu,项目名称:gecko-dev,代码行数:20,代码来源:Recover.cpp

示例5:

RArrayState::RArrayState(CompactBufferReader &reader)
{
    numElements_ = reader.readUnsigned();
}
开发者ID:msliu,项目名称:gecko-dev,代码行数:4,代码来源:Recover.cpp

示例6: AllocatingBehaviour

RNewArray::RNewArray(CompactBufferReader &reader)
{
    count_ = reader.readUnsigned();
    allocatingBehaviour_ = AllocatingBehaviour(reader.readByte());
}
开发者ID:msliu,项目名称:gecko-dev,代码行数:5,代码来源:Recover.cpp

示例7:

RHypot::RHypot(CompactBufferReader& reader)
    : numOperands_(reader.readUnsigned())
{ }
开发者ID:Phoxygen,项目名称:gecko-dev,代码行数:3,代码来源:Recover.cpp


注:本文中的CompactBufferReader::readUnsigned方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。