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

Function GetStream

engine/dlib/src/dlib/buffer.cpp:497–506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

495 }
496
497 static Buffer::Stream* GetStream(Buffer* buffer, dmhash_t stream_name)
498 {
499 for (uint8_t i = 0; i < buffer->m_NumStreams; ++i) {
500 Buffer::Stream* stream = &buffer->m_Streams[i];
501 if (stream_name == stream->m_Name) {
502 return stream;
503 }
504 }
505 return 0x0;
506 }
507
508 Result GetStream(HBuffer hbuffer, dmhash_t stream_name, void** out_stream, uint32_t* count, uint32_t* component_count, uint32_t* stride)
509 {

Callers 3

GetStreamTypeFunction · 0.70
TEST_FFunction · 0.50
TEST_PFunction · 0.50

Calls 3

ValidateBufferFunction · 0.85
GetSizeForValueTypeFunction · 0.85
GetMethod · 0.45

Tested by 2

TEST_FFunction · 0.40
TEST_PFunction · 0.40