]> ocean-lang.org Git - ocean/commit
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)
commit211c350aee530ff43771ddc1f49c013e7183f507
tree9185f23f20bc87b5d55c8b8832e597d2c38c6b04
parent4edaeb7f2f51bb7486b11783b65ffcce2d2244f7
oceani: pass a destination buffer into interp_exec to receive large result.

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>
csrc/oceani.mdc