3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/core/file/PathBuffer.h"
7#include "mc/deps/core/utility/NonOwnerPointer.h"
8#include "mc/resources/EncryptedFileAccessStrategy.h"
9#include "mc/resources/PackAccessStrategyType.h"
19namespace Core {
class Path; }
22class ZippedEncryptedFilesAccessStrategy :
public ::EncryptedFileAccessStrategy {
33 ZippedEncryptedFilesAccessStrategy& operator=(ZippedEncryptedFilesAccessStrategy
const&);
34 ZippedEncryptedFilesAccessStrategy(ZippedEncryptedFilesAccessStrategy
const&);
35 ZippedEncryptedFilesAccessStrategy();
40 virtual ::ResourceLocation
const& getPackLocation()
const ;
42 virtual bool hasFolder(
::Core::Path const& packRelativePath)
const ;
44 virtual void forEachIn(
50 virtual ::PackAccessStrategyType getStrategyType()
const ;
52 virtual ::Core::PathBuffer<::std::string>
const& getSubPath()
const ;
54 virtual bool supportsSignatureVerification()
const ;
56 virtual ::std::unique_ptr<::PackAccessStrategy> createSubPack(
::Core::Path const& subPath)
const ;
58 virtual ::std::string _getContentsFile() ;
60 virtual ::std::string _getEncryptedAssetStream(
::Core::Path const& packRelativePath)
const ;
62 virtual ::std::vector<::Bedrock::Resources::PreloadedPathHandle>
63 _preloadSubFolders(
::Core::Path const& packRelativePath)
const ;
72 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const>
const& keyProvider,
75 ::std::unique_ptr<::PackAccessStrategy> zipSubPack
96 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const>
const& keyProvider,
99 ::std::unique_ptr<::PackAccessStrategy> zipSubPack
118 MCNAPI ::Core::PathBuffer<::std::string>
const&
$getSubPath()
const;
128 MCNAPI ::std::vector<::Bedrock::Resources::PreloadedPathHandle>
Definition PreloadedPathHandle.h:16
Definition ContentIdentity.h:8
Definition IContentKeyProvider.h:13
Definition IPackIOProvider.h:15
Definition PackAccessStrategy.h:26
Definition ResourceLocation.h:15
MCAPI::ResourceLocation const & $getPackLocation() const
MCAPI void * $ctor(::ResourceLocation const &archiveLocation, ::ContentIdentity const &contentIdentity, ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const > const &keyProvider, ::IPackIOProvider const &io, ::Core::Path const &subPath, ::std::unique_ptr<::PackAccessStrategy > zipSubPack)
MCAPI void $forEachIn(::Core::Path const &packRelativePath, ::std::function< void(::Core::Path const &)> callback, bool recurseAnyways) const
MCAPI::PackAccessStrategyType $getStrategyType() const
MCAPI ZippedEncryptedFilesAccessStrategy(::ResourceLocation const &archiveLocation, ::ContentIdentity const &contentIdentity, ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const > const &keyProvider, ::IPackIOProvider const &io, ::Core::Path const &subPath, ::std::unique_ptr<::PackAccessStrategy > zipSubPack)
MCAPI bool $hasFolder(::Core::Path const &packRelativePath) const
static MCAPI void ** $vftable()
MCAPI ::std::vector<::Bedrock::Resources::PreloadedPathHandle > $_preloadSubFolders(::Core::Path const &packRelativePath) const
MCAPI bool $supportsSignatureVerification() const
MCAPI ::std::unique_ptr<::PackAccessStrategy > $createSubPack(::Core::Path const &subPath) const
static MCAPI bool isValidZippedEncryptedPack(::IPackIOProvider const &io, ::Core::Path const &pathToPack, ::ContentIdentity &contentIdentity, ::Core::Path const &subPath)
MCAPI::std::string $_getEncryptedAssetStream(::Core::Path const &packRelativePath) const
MCAPI::std::string $_getContentsFile()
MCAPI ::Core::PathBuffer<::std::string > const & $getSubPath() const