// Copyright Epic Games, Inc. All Rights Reserved. #include #include namespace zen { EPartialBlockRequestMode PartialBlockRequestModeFromString(const std::string_view ModeString) { switch (HashStringAsLowerDjb2(ModeString)) { case HashStringDjb2("false"): return EPartialBlockRequestMode::Off; case HashStringDjb2("zencacheonly"): return EPartialBlockRequestMode::ZenCacheOnly; case HashStringDjb2("mixed"): return EPartialBlockRequestMode::Mixed; case HashStringDjb2("true"): return EPartialBlockRequestMode::All; default: return EPartialBlockRequestMode::Invalid; } } } // namespace zen