MCPcopy Create free account
hub / github.com/anjo76/angelscript / GetByteCode

Method GetByteCode

sdk/angelscript/source/as_scriptfunction.cpp:1653–1664  ·  view source on GitHub ↗

interface

Source from the content-addressed store, hash-verified

1651
1652// interface
1653asDWORD *asCScriptFunction::GetByteCode(asUINT *length)
1654{
1655 if( scriptData == 0 ) return 0;
1656
1657 if( length )
1658 *length = (asUINT)scriptData->byteCode.GetLength();
1659
1660 if( scriptData->byteCode.GetLength() )
1661 return scriptData->byteCode.AddressOf();
1662
1663 return 0;
1664}
1665
1666// interface
1667void *asCScriptFunction::SetUserData(void *data, asPWORD type)

Callers 1

ValidateByteCodeFunction · 0.80

Calls 2

GetLengthMethod · 0.45
AddressOfMethod · 0.45

Tested by 1

ValidateByteCodeFunction · 0.64