MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / write

Function write

plugin/common/plugin.h:85–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83// Write values into buffer
84template <typename Type, typename BufferType>
85void write(BufferType*& buffer, Type const& val)
86{
87 static_assert(sizeof(BufferType) == 1, "BufferType must be a 1 byte type.");
88 std::memcpy(buffer, &val, sizeof(Type));
89 buffer += sizeof(Type);
90}
91
92// Read values from buffer
93template <typename OutType, typename BufferType>

Callers 15

serializeMethod · 0.85
serializeMethod · 0.85
serializeMethod · 0.85
serializeMethod · 0.85
serializeMethod · 0.85
serializeMethod · 0.85
serializeMethod · 0.85
serializeMethod · 0.85
serializeMethod · 0.85
serializeMethod · 0.85
serializeMethod · 0.85
serializeMethod · 0.85

Calls

no outgoing calls

Tested by 3

serializeMethod · 0.68
mainFunction · 0.68
mainFunction · 0.68