Function ResourceFormatSaver.save

Saves the given resource object to a file at the target path. flags is a bitmask composed with ResourceSaver.saverflags constants. Returns constant OK on success, or an error constant in case of failure.

long save (
  const(String) path,
  Resource resource,
  const(long) flags
) nothrow @nogc;