import { __retain , __release , } from "rt/index-full" ; export function malloc ( size ) { let buffer = new ArrayBuffer ( size ) ; let ptr = changetype < usize > ( buffer ) ; return __retain ( ptr ) ; } export function free ( ptr ) { __release ( ptr ) ; }