MCPcopy Create free account
hub / github.com/clMathLibraries/clBLAS / writeBinaryToFile

Function writeBinaryToFile

src/library/tools/bingen/bingen.cpp:45–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43char* NameDevicesToSupport = NULL;
44
45int writeBinaryToFile(const char* fileName, const char* binary, size_t numBytes)
46{
47 ofstream output;
48 output.open(fileName, ios::binary | ios::trunc);
49 if (output.is_open())
50 {
51 output.write(binary, numBytes);
52 output.close();
53 return 0;
54 }
55 else
56 {
57 return 1;
58 }
59}
60
61
62

Callers 1

GenBinaryFunction · 0.85

Calls 1

closeMethod · 0.80

Tested by

no test coverage detected