return buffer size