main: report buffer length