Storing reference of a function in typed array

I have a huge list of functions and i need to store them to a typed array.

list for 10 millions function :

var size = 10000000 * 4;
var buffer = new ArrayBuffer( size);
var int32View = new Int32Array(buffer);

//How to store a function address in the list?
int32View[0]= addressof(myfunc);

//How to retrieve a function from the list?
myfunc = int32View[0] as function;

Thanks