MCPcopy Create free account
hub / github.com/defold/defold / GetStructSize

Function GetStructSize

engine/dlib/src/dlib/buffer.cpp:128–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126
127
128 uint32_t GetStructSize(HBuffer hbuffer)
129 {
130 Buffer* buffer = g_BufferContext->Get(hbuffer);
131 if (!buffer) {
132 return 0;
133 }
134 return buffer->m_Stride;
135 }
136
137 uint32_t GetSizeForValueType(ValueType value_type)
138 {

Callers 5

TEST_PFunction · 0.85
BuildBufferFunction · 0.85
BuildVertexDeclarationFunction · 0.85
CreateBufferFunction · 0.85
SetBufferFunction · 0.85

Calls 1

GetMethod · 0.45

Tested by 1

TEST_PFunction · 0.68