MCPcopy Create free account
hub / github.com/csyonghe/Spire / ProduceFunction

Method ProduceFunction

Source/SpireCore/SpirVCodeGen.cpp:741–761  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

739 streamHeader.Add(0x00000000); // reserved
740 }
741 void ProduceFunction()
742 {
743 //---------------- for binary code ----------------
744 streamProcessedFunctions.AddRange(streamFunctionHeader);
745 streamFunctionHeader.Clear();
746
747 streamProcessedFunctions.AddRange(streamFunctionVariable);
748 streamFunctionVariable.Clear();
749
750 streamProcessedFunctions.AddRange(streamFunctionBody);
751 streamFunctionBody.Clear();
752
753 //---------------- for text code ----------------
754 sbTextFunctionDefinitions
755 << sbTextFunctionHeader.ToString()
756 << sbTextFunctionVariable.ToString()
757 << sbTextFunctionBody.ToString();
758 sbTextFunctionHeader.Clear();
759 sbTextFunctionVariable.Clear();
760 sbTextFunctionBody.Clear();
761 }
762 List<unsigned int> ProduceWordStream(int IDBound)
763 {
764 streamHeader[3] = IDBound + 5;

Callers 2

ProduceFunctionMethod · 0.45

Calls 3

AddRangeMethod · 0.80
ClearMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected