MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / _builtin_binary_load

Function _builtin_binary_load

src/simulate/bin_serializer.cpp:308–313  ·  view source on GitHub ↗

load ( obj, bytesAt )

Source from the content-addressed store, hash-verified

306
307 // load ( obj, bytesAt )
308 void _builtin_binary_load ( Context & context, LineInfo * at, TypeInfo* info, const char *data, uint64_t len, char *to) {
309 if ( !(info->flags&(TypeInfo::flag_refType | TypeInfo::flag_ref)) )
310 return;
311 BinDataSerialize reader(context, at, const_cast<char*>(data), len);
312 reader.walk(to, info);
313 }
314
315 vec4f _builtin_binary_load ( Context & context, SimNode_CallBase * call, vec4f * args ) {
316 Array * ba = cast<Array *>::to(args[1]);

Callers

nothing calls this directly

Calls 3

toFunction · 0.85
v_zeroFunction · 0.50
walkMethod · 0.45

Tested by

no test coverage detected