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
18
PXR_NAMESPACE_OPEN_SCOPE
19
26
class
ArWritableAsset
27
{
28
public
:
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
48
protected
:
49
AR_API
50
ArWritableAsset
();
51
};
52
53
PXR_NAMESPACE_CLOSE_SCOPE
54
55
#endif
ArWritableAsset
Interface for writing data to an asset.
Definition:
writableAsset.h:27
ArWritableAsset::Close
virtual bool Close()=0
Close this asset, performing any necessary finalization or commits of data that was previously writte...
ArWritableAsset::Write
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.
pxr.h
pxr
usd
ar
writableAsset.h
© Copyright 2025, Pixar Animation Studios. |
Terms of Use
| Generated on Thu Oct 23 2025 15:48:44 by
1.9.6