Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
internal::TokenHelper< Stack, Ch > Struct Template Reference

#include <schema.h>

Static Public Member Functions

static RAPIDJSON_FORCEINLINE void AppendIndexToken (Stack &documentStack, SizeType index)
 

Detailed Description

template<typename Stack, typename Ch>
struct internal::TokenHelper< Stack, Ch >

Definition at line 1445 of file schema.h.

Member Function Documentation

◆ AppendIndexToken()

template<typename Stack , typename Ch >
static RAPIDJSON_FORCEINLINE void internal::TokenHelper< Stack, Ch >::AppendIndexToken ( Stack & documentStack,
SizeType index )
inlinestatic

Definition at line 1446 of file schema.h.

1446 {
1447 *documentStack.template Push<Ch>() = '/';
1448 char buffer[21];
1449 size_t length = static_cast<size_t>((sizeof(SizeType) == 4 ? u32toa(index, buffer) : u64toa(index, buffer)) - buffer);
1450 for (size_t i = 0; i < length; i++)
1451 *documentStack.template Push<Ch>() = static_cast<Ch>(buffer[i]);
1452 }
#define Ch(x, y, z)
Definition hash_impl.h:17
char * u64toa(uint64_t value, char *buffer)
Definition itoa.h:126
char * u32toa(uint32_t value, char *buffer)
Definition itoa.h:39
RAPIDJSON_NAMESPACE_BEGIN typedef unsigned SizeType
Size type (for string lengths, array sizes, etc.)
Definition rapidjson.h:384
Here is the call graph for this function:

The documentation for this struct was generated from the following file: