Loading...
Searching...
No Matches
writableAsset.h
Go to the documentation of this file.
1//
2// Copyright 2020 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
7#ifndef PXR_USD_AR_WRITABLE_ASSET_H
8#define PXR_USD_AR_WRITABLE_ASSET_H
9
11
12#include "pxr/pxr.h"
13
14#include "pxr/usd/ar/api.h"
15
16#include <cstdio>
17
18PXR_NAMESPACE_OPEN_SCOPE
19
27{
28public:
29 AR_API
30 virtual ~ArWritableAsset();
31
32 ArWritableAsset(const ArWritableAsset&) = delete;
33 ArWritableAsset& operator=(const ArWritableAsset&) = delete;
34
42 virtual bool Close() = 0;
43
46 virtual size_t Write(const void* buffer, size_t count, size_t offset) = 0;
47
48protected:
49 AR_API
51};
52
53PXR_NAMESPACE_CLOSE_SCOPE
54
55#endif
Interface for writing data to an asset.
Definition: writableAsset.h:27
virtual bool Close()=0
Close this asset, performing any necessary finalization or commits of data that was previously writte...
virtual size_t Write(const void *buffer, size_t count, size_t offset)=0
Writes count bytes from buffer at offset from the beginning of the asset.