MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / spvDecodeLiteralStringOperand

Function spvDecodeLiteralStringOperand

source/binary.cpp:67–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67std::string spvDecodeLiteralStringOperand(const spv_parsed_instruction_t& inst,
68 const uint16_t operand_index) {
69 assert(operand_index < inst.num_operands);
70 const spv_parsed_operand_t& operand = inst.operands[operand_index];
71
72 return spvtools::utils::MakeString(inst.words + operand.offset,
73 operand.num_words);
74}
75
76namespace {
77

Callers 3

GetExtensionStringFunction · 0.85
ParseInstructionMethod · 0.85
EmitOperandMethod · 0.85

Calls 1

MakeStringFunction · 0.85

Tested by

no test coverage detected