Function AllocOptions.withFlags

set flags to options

AllocOptions withFlags (
  AllocFlags flags
);