MCPcopy Create free account
hub / github.com/BabylonJS/BabylonNative / AppendBytes

Function AppendBytes

Plugins/NativeEngine/Source/NativeEngine.cpp:38–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 {
37 template<typename AppendageT>
38 inline void AppendBytes(std::vector<uint8_t>& bytes, const AppendageT appendage)
39 {
40 auto ptr = reinterpret_cast<const uint8_t*>(&appendage);
41 auto stride = static_cast<std::ptrdiff_t>(sizeof(AppendageT));
42 bytes.insert(bytes.end(), ptr, ptr + stride);
43 }
44
45 template<typename AppendageT = std::string&>
46 inline void AppendBytes(std::vector<uint8_t>& bytes, const std::string& string)

Callers 3

AppendUniformBufferFunction · 0.85
AppendSamplersFunction · 0.85
CreateProgramMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected