add new macro to get buffer allocated size (used by in-line assembly)