made all buffer size params ints so that int literals can be used without interfering with overload resolution