15#ifndef DRACO_CORE_VARINT_ENCODING_H_
16#define DRACO_CORE_VARINT_ENCODING_H_
27template <
typename IntTypeT>
29 if (std::is_unsigned<IntTypeT>::value) {
34 out |= val & ((1 << 7) - 1);
35 if (val >= (1 << 7)) {
37 if (!out_buffer->
Encode(out)) {
45 if (!out_buffer->
Encode(out)) {
50 const typename std::make_unsigned<IntTypeT>::type symbol =
Definition encoder_buffer.h:29
bool Encode(const T &data)
Definition encoder_buffer.h:60
Definition attribute_octahedron_transform.cc:21
std::make_unsigned< IntTypeT >::type ConvertSignedIntToSymbol(IntTypeT val)
Definition bit_utils.h:90
bool EncodeVarint(IntTypeT val, EncoderBuffer *out_buffer)
Definition varint_encoding.h:28