fixed memory allocation size for buffer