MCPcopy Create free account
hub / github.com/NVIDIA/cuda-quantum / write

Method write

runtime/common/KernelWrapper.h:35–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33 SerializeOutputBuffer(char *buffer, std::size_t remaining)
34 : m_buffer(buffer), m_remaining(remaining) {}
35 bool write(const char *data, std::size_t size) {
36 if (size > m_remaining)
37 return false;
38 std::memcpy(m_buffer, data, size);
39 m_buffer += size;
40 m_remaining -= size;
41 return true;
42 }
43
44private:
45 char *m_buffer = nullptr;

Callers 15

_logFunction · 0.45
getSVGstringFunction · 0.45
_from_qasm_fileFunction · 0.45
test_simple_qasm_fileMethod · 0.45
mainFunction · 0.45
quantinuum_mock_serverFunction · 0.45
write_a_mock_tokens_fileFunction · 0.45
do_POSTMethod · 0.45
do_GETMethod · 0.45

Calls

no outgoing calls

Tested by 6

_from_qasm_fileFunction · 0.36
test_simple_qasm_fileMethod · 0.36
quantinuum_mock_serverFunction · 0.36