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

Function GetStreamType

engine/dlib/src/dlib/buffer.cpp:564–579  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

562 }
563
564 Result GetStreamType(HBuffer hbuffer, dmhash_t stream_name, dmBuffer::ValueType* type, uint32_t* type_count)
565 {
566 Buffer* buffer = g_BufferContext->Get(hbuffer);
567 if (!buffer) {
568 return RESULT_BUFFER_INVALID;
569 }
570
571 Buffer::Stream* stream = GetStream(buffer, stream_name);
572 if (stream == 0x0) {
573 return RESULT_STREAM_MISSING;
574 }
575
576 *type = (dmBuffer::ValueType)stream->m_ValueType;
577 *type_count = stream->m_ValueCount;
578 return RESULT_OK;
579 }
580
581 Result GetContentVersion(HBuffer hbuffer, uint32_t* version)
582 {

Callers 7

TEST_FFunction · 0.85
BuildVertexDeclarationFunction · 0.85
TEST_FFunction · 0.85
PushStreamFunction · 0.85
CopyBufferFunction · 0.85
Buffer_tostringFunction · 0.85
Stream_tostringFunction · 0.85

Calls 2

GetStreamFunction · 0.70
GetMethod · 0.45

Tested by 2

TEST_FFunction · 0.68
TEST_FFunction · 0.68