Navigation
API > API/Plugins > API/Plugins/RigLogicLib
ArchiveSize is a type that stores an arbitrary size value (both in-memory and writes that value into the stream as well). It has two accompanying types: Proxy and Anchor, which are both virtual, utility types, and they work together to achieve the function of ArchiveSize. When ArchiveSize is encountered during the serialization process, at first an empty size (zero) value will be written into the stream and the position of that size value will be captured in an in-memory variable. Later, when its associated Anchor is encountered, it will capture the current stream position as the base (start) offset, from which the size is going to be computed (size is relative to some base offset). Lastly, when its ArchiveSize
| Name | ArchiveSize |
| Type | struct |
| Header File | /Engine/Plugins/Animation/RigLogic/Source/RigLogicLib/Public/terse/types/ArchiveSize.h |
| Include Path | #include "terse/types/ArchiveSize.h" |
Syntax
template<typename TSize, typename TOffset>
struct ArchiveSize
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ArchiveSize () |
terse/types/ArchiveSize.h | ||
ArchiveSize
(
const ArchiveSize& |
terse/types/ArchiveSize.h | ||
ArchiveSize
(
ArchiveSize&& rhs |
terse/types/ArchiveSize.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~ArchiveSize() |
terse/types/ArchiveSize.h |
Structs
| Name | Remarks |
|---|---|
| Proxy |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| ValueType | TSize | terse/types/ArchiveSize.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| position | std::size_t | The position of the marker itself in the stream (this is a runtime-only value which is not written to the file, needed only for the serializer to know where to seek within the stream when the marker's actual value needs to be written) | terse/types/ArchiveSize.h | |
| proxy | Proxy * | When size is moved, it's associated proxy must be updated about the new address. | terse/types/ArchiveSize.h | |
| value | ValueType | The size value itself (what is written to the file) | terse/types/ArchiveSize.h |
Functions
Public
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ArchiveSize & operator=
(
const ArchiveSize& |
terse/types/ArchiveSize.h | ||
ArchiveSize & operator=
(
ArchiveSize&& rhs |
terse/types/ArchiveSize.h |