writing loop points to aiff file from buffer~

I have noticed that buffer~’s writeaiff method doesn’t seem to export the loop point information (b_susloopstart and b_susloopendrelease in the buffer structure).
Is there a way to do this using Max built-in routines, or should I develop something of my own ?