Set buffer size as defined value