[Bioc-devel] IntAE buffers needs to be freed or not??

Ge Tan ge_tan at live.com
Fri Jul 19 12:35:38 CEST 2013


Hi all,

I am using the IntAE buffers (taken from IRanges packages) in my .Call() code.
Sample code in C:

IntAE width_buf;
width_buf = new_IntAE(0, 0, 0);
for(…){
    IntAE_insert_at(&width_buf, IntAE_get_nelt(&width_buf), width);
}
PROTECT(width = new_INTEGER_from_IntAE(&width_buf));
UNPROTECT(1);
return(width);

So after using .Call(), do I need to run something like ".Call("AEbufs_free", PACKAGE="IRanges")" in R?
I got this from the IRanges/src/AEbufs.c.

Thanks!
Ge 		 	   		  


More information about the Bioc-devel mailing list