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

Function Stream_len

engine/gamesys/src/gamesys/scripts/script_buffer.cpp:844–850  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

842 }
843
844 static int Stream_len(lua_State* L)
845 {
846 DM_LUA_STACK_CHECK(L, 1);
847 BufferStream* stream = CheckStream(L, 1);
848 lua_pushnumber(L, stream->m_Count * stream->m_TypeCount);
849 return 1;
850 }
851
852 static int Stream_index(lua_State* L)
853 {

Callers

nothing calls this directly

Calls 2

CheckStreamFunction · 0.85
lua_pushnumberFunction · 0.85

Tested by

no test coverage detected