26 #ifndef NVNEURAL_ZLIBRESOURCEDICTIONARY_H 
   27 #define NVNEURAL_ZLIBRESOURCEDICTIONARY_H 
   31 #include <initializer_list> 
   46     using ResourceMap = std::map<IResourceDictionary::ResourceId, ByteVector>;
 
   58         const void** ppBufferOut,
 
   59         std::size_t* pBufferSizeOut) 
const noexcept 
override;
 
   64     void uncompressResources(
const ResourceMap& resourcePairs);
 
Definitions of C++ code generation interfaces exported by tools and plugins.
 
NeuralResult
NeuralResult is a generic success/failure result type similar to COM HRESULT.
Definition: CoreTypes.h:275
 
Standard implementation for IRefObject-derived objects.
 
std::uint32_t ResourceId
Unique identifier for a resource.
Definition: CodeGenTypes.h:41
 
Resource dictionary that decompresses payloads using Zlib.
Definition: ZlibResourceDictionary.h:41
 
std::vector< std::uint8_t > ByteVector
Convenience typedef representing a vector of bytes.
Definition: ZlibResourceDictionary.h:44
 
std::map< IResourceDictionary::ResourceId, ByteVector > ResourceMap
Convenience typedef representing an associative array mapping resource IDs to ByteVector buffers.
Definition: ZlibResourceDictionary.h:46
 
ZlibResourceDictionary(const ResourceMap &resourcePairs)
Creates a ZlibResourceDictionary allowing unpacking of the provided resource map.
Definition: ZlibResourceDictionary.cpp:30
 
NeuralResult getResource(IResourceDictionary::ResourceId resourceId, const void **ppBufferOut, std::size_t *pBufferSizeOut) const noexcept
Retrieves a buffer that was stored in this dictionary.
Definition: ZlibResourceDictionary.cpp:35
 
Parameterized base class implementing common IRefObject operations.
Definition: RefObject.h:336