Commit 9573f229 authored by Stephanie Gawroriski's avatar Stephanie Gawroriski
Browse files


parent 86e277ef
......@@ -31,3 +31,8 @@ What I need for the native code is a type specifying the size of the input. I
can then have the allocator prime the arguments for me. I already have
## 14:34
I believe what the allocator needs is a means of allocating just a specific
type in a specific location so to speak.
......@@ -114,10 +114,18 @@ public class NativeAllocator
throw new NullPointerException("NARG");
// Ignore if empty
if (__t.length <= 0)
int n;
if ((n = __t.length) <= 0)
return new NativeAllocation[0];
throw new Error("TODO");
// Allocations will always match the input argument size
NativeAllocation[] rv = new NativeAllocation[n];
if (true)
throw new Error("TODO");
// Return it
return rv;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment