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

Function GetCount

engine/dlib/src/dlib/buffer.cpp:554–562  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

552 }
553
554 Result GetCount(HBuffer hbuffer, uint32_t* out_element_count)
555 {
556 Buffer* buffer = g_BufferContext->Get(hbuffer);
557 if (!buffer) {
558 return RESULT_BUFFER_INVALID;
559 }
560 *out_element_count = buffer->m_Count;
561 return RESULT_OK;
562 }
563
564 Result GetStreamType(HBuffer hbuffer, dmhash_t stream_name, dmBuffer::ValueType* type, uint32_t* type_count)
565 {

Callers 6

TEST_FFunction · 0.85
CopyBufferFunction · 0.85
Buffer_tostringFunction · 0.85
Buffer_lenFunction · 0.85
CreateBufferFunction · 0.85
SetBufferFunction · 0.85

Calls 1

GetMethod · 0.45

Tested by 1

TEST_FFunction · 0.68