23 #ifndef PXR_USD_AR_FILESYSTEM_ASSET_H
24 #define PXR_USD_AR_FILESYSTEM_ASSET_H
51 static std::shared_ptr<ArFilesystemAsset>
Open(
72 virtual size_t GetSize()
const override;
77 virtual std::shared_ptr<const char>
GetBuffer()
const override;
89 virtual std::pair<FILE*, size_t>
GetFileUnsafe()
const override;
97 #endif // PXR_USD_AR_FILESYSTEM_ASSET_H
static AR_API std::shared_ptr< ArFilesystemAsset > Open(const ArResolvedPath &resolvedPath)
virtual AR_API size_t GetSize() const override
Returns the size of the file held by this object.
virtual AR_API std::pair< FILE *, size_t > GetFileUnsafe() const override
AR_API ArFilesystemAsset(FILE *file)
static AR_API ArTimestamp GetModificationTimestamp(const ArResolvedPath &resolvedPath)
virtual AR_API size_t Read(void *buffer, size_t count, size_t offset) const override
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
virtual AR_API std::shared_ptr< const char > GetBuffer() const override
#define PXR_NAMESPACE_CLOSE_SCOPE
AR_API ~ArFilesystemAsset()
Closes the file owned by this object.