provide a way to make in/out buffer allocations declarative instead of manually via init constructor (see filedialogs.lua).