Allocate directly the input buffer