Use stack array for buffer instead of gig::buffer_t