Electroneum
Loading...
Searching...
No Matches
internal::TokenHelper< Stack, char > Struct Template Reference

#include <schema.h>

Static Public Member Functions

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

Detailed Description

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

Definition at line 1455 of file schema.h.

Member Function Documentation

◆ AppendIndexToken()

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

Definition at line 1456 of file schema.h.

1456 {
1457 if (sizeof(SizeType) == 4) {
1458 char *buffer = documentStack.template Push<char>(1 + 10); // '/' + uint
1459 *buffer++ = '/';
1460 const char* end = internal::u32toa(index, buffer);
1461 documentStack.template Pop<char>(static_cast<size_t>(10 - (end - buffer)));
1462 }
1463 else {
1464 char *buffer = documentStack.template Push<char>(1 + 20); // '/' + uint64
1465 *buffer++ = '/';
1466 const char* end = internal::u64toa(index, buffer);
1467 documentStack.template Pop<char>(static_cast<size_t>(20 - (end - buffer)));
1468 }
1469 }
char * u64toa(uint64_t value, char *buffer)
Definition itoa.h:126
char * u32toa(uint32_t value, char *buffer)
Definition itoa.h:39
Here is the call graph for this function:

The documentation for this struct was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/external/rapidjson/include/rapidjson/schema.h