Also assume direction=out for size_t*, ssize_t* arguments