Ark Server API (ASA) - Wiki
|
#include <CompactBinary.h>
Public Member Functions | |
TCbBuffer ()=default | |
TCbBuffer (FSharedBuffer ValueBuffer, ECbFieldType Type=ECbFieldType::HasFieldType) | |
TCbBuffer (const ViewType &Value, FSharedBuffer OuterBuffer) | |
template<typename OtherViewType > | |
TCbBuffer (const ViewType &Value, TCbBuffer< OtherViewType > OuterBuffer) | |
void | Reset () |
bool | IsOwned () const |
void | MakeOwned () |
const ViewType & | AsView () const |
const FSharedBuffer & | GetOuterBuffer () const & |
FSharedBuffer | GetOuterBuffer () && |
FCbField | operator[] (FUtf8StringView Name) const |
FCbFieldIterator | CreateIterator () const |
FCbFieldIterator | begin () const |
constexpr FCbIteratorSentinel | end () const |
Private Attributes | |
FSharedBuffer | Buffer |
Friends | |
template<typename OtherType > | |
class | TCbBuffer |
A wrapper that holds a reference to the buffer that contains its compact binary value.
Definition at line 1109 of file CompactBinary.h.
|
default |
Construct a default value.
|
inlineexplicit |
Construct a value from a pointer to its data and an optional externally-provided type.
ValueBuffer | A buffer that exactly contains the value. |
Type | HasFieldType means that ValueBuffer contains the type. Otherwise, use the given type. |
Definition at line 1121 of file CompactBinary.h.
|
inline |
Construct a value that holds a reference to the buffer that contains it.
Definition at line 1132 of file CompactBinary.h.
|
inline |
Construct a value that holds a reference to the buffer of the outer that contains it.
Definition at line 1144 of file CompactBinary.h.
Returns the value as a view.
Definition at line 1168 of file CompactBinary.h.
|
inline |
DO NOT USE DIRECTLY. These functions enable range-based for loop support.
Definition at line 1351 of file CompactBinary.h.
|
inline |
Create an iterator for the fields of an array or object, otherwise an empty iterator.
Definition at line 1341 of file CompactBinary.h.
|
inlineconstexpr |
Definition at line 1187 of file CompactBinary.h.
|
inline |
Definition at line 1177 of file CompactBinary.h.
|
inline |
Returns the outer buffer (if any) that contains this value.
The outer buffer might contain other data before and/or after this value. Use GetBuffer to request a buffer that exactly contains this value, or TryGetView for a contiguous view.
Definition at line 1176 of file CompactBinary.h.
Whether this reference has ownership of the memory in its buffer.
Definition at line 1153 of file CompactBinary.h.
Clone the value, if necessary, to a buffer that this reference has ownership of.
Definition at line 1156 of file CompactBinary.h.
|
inline |
Find a field of an object by case-sensitive name comparison, otherwise a field with no value.
Definition at line 1270 of file CompactBinary.h.
Reset this to a default value and null buffer.
Definition at line 1150 of file CompactBinary.h.
Definition at line 1191 of file CompactBinary.h.
|
private |
Definition at line 1193 of file CompactBinary.h.