v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
vlq.h File Reference
#include <limits>
#include <vector>
#include "src/base/memory.h"
Include dependency graph for vlq.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  v8
 
namespace  v8::base
 

Functions

template<typename Function >
void v8::base::VLQEncodeUnsigned (Function &&process_byte, uint32_t value)
 
uint32_t v8::base::VLQConvertToUnsigned (int32_t value)
 
template<typename Function >
void v8::base::VLQEncode (Function &&process_byte, int32_t value)
 
template<typename A >
void v8::base::VLQEncode (std::vector< uint8_t, A > *data, int32_t value)
 
template<typename A >
void v8::base::VLQEncodeUnsigned (std::vector< uint8_t, A > *data, uint32_t value)
 
template<typename GetNextFunction >
requires std::is_same<decltype(std::declval<GetNextFunction>()()), uint8_t>::value
uint32_t v8::base::VLQDecodeUnsigned (GetNextFunction &&get_next)
 
uint32_t v8::base::VLQDecodeUnsigned (const uint8_t *data_start, int *index)
 
int32_t v8::base::VLQDecode (const uint8_t *data_start, int *index)
 

Variables

static constexpr uint32_t v8::base::kContinueShift = 7
 
static constexpr uint32_t v8::base::kContinueBit = 1 << kContinueShift
 
static constexpr uint32_t v8::base::kDataMask = kContinueBit - 1