]> ocean-lang.org Git - ocean/commitdiff
oceani: pass a destination buffer into interp_exec to receive large result.
authorNeilBrown <neil@brown.name>
Mon, 15 Nov 2021 21:23:06 +0000 (08:23 +1100)
committerNeilBrown <neil@brown.name>
Sat, 20 Nov 2021 00:19:56 +0000 (11:19 +1100)
To handle assignment from large objects - particularly a structure
returned by a function - we cannot just pass back a 'struct value'.
Instead we need to pass in a sufficiently large buffer, and have
the value producer copy into it.

This patch passes in a 'dest' and 'dtype' for this purpose.  It is not
yet used to full potential.

Signed-off-by: NeilBrown <neil@brown.name>

No differences found