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

Function spvBinaryDestroy

source/binary.cpp:973–978  ·  view source on GitHub ↗

TODO(dneto): This probably belongs in text.cpp since that's the only place that a spv_binary_t value is created.

Source from the content-addressed store, hash-verified

971// TODO(dneto): This probably belongs in text.cpp since that's the only place
972// that a spv_binary_t value is created.
973void spvBinaryDestroy(spv_binary binary) {
974 if (binary) {
975 if (binary->code) delete[] binary->code;
976 delete binary;
977 }
978}
979
980size_t spv_strnlen_s(const char* str, size_t strsz) {
981 if (!str) return 0;

Callers 15

mainFunction · 0.85
AssembleMethod · 0.85
TESTFunction · 0.85
~BinaryToTextMethod · 0.85
TearDownMethod · 0.85
CompileSuccessfullyMethod · 0.85
TEST_FFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
TEST_FFunction · 0.85
DestroyBinaryMethod · 0.85
ToBinaryAndBackFunction · 0.85

Calls

no outgoing calls

Tested by 13

TESTFunction · 0.68
~BinaryToTextMethod · 0.68
TearDownMethod · 0.68
CompileSuccessfullyMethod · 0.68
TEST_FFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
TEST_FFunction · 0.68
DestroyBinaryMethod · 0.68
ToBinaryAndBackFunction · 0.68
TEST_PFunction · 0.68
TEST_FFunction · 0.68