tostring input buffer