8#ifndef PXR_BASE_TS_BINARY_H
9#define PXR_BASE_TS_BINARY_H
12#include "pxr/base/ts/api.h"
13#include "pxr/base/ts/spline.h"
14#include "pxr/base/ts/types.h"
18#include <unordered_map>
21PXR_NAMESPACE_OPEN_SCOPE
26struct Ts_BinaryDataAccess
32 static constexpr uint8_t GetBinaryFormatVersion() {
return 1; }
37 static void GetBinaryData(
39 std::vector<uint8_t> *buf,
40 const std::unordered_map<TsTime, VtDictionary> **customDataOut);
44 static TsSpline CreateSplineFromBinaryData(
45 const std::vector<uint8_t> &buf,
46 std::unordered_map<TsTime, VtDictionary> &&customData);
50 const std::vector<uint8_t> &buf,
51 std::unordered_map<TsTime, VtDictionary> &&customData);
55PXR_NAMESPACE_CLOSE_SCOPE
A mathematical description of a curved function from time to value.