Flutter Engine
The Flutter Engine
Public Types | Static Public Attributes | List of all members
dart::LEB128Constants Struct Reference

#include <datastream.h>

Inheritance diagram for dart::LEB128Constants:
dart::AllStatic

Public Types

template<typename T , typename S >
using only_if_signed = typename std::enable_if< std::is_signed< T >::value, S >::type
 
template<typename T , typename S >
using only_if_unsigned = typename std::enable_if< std::is_unsigned< T >::value, S >::type
 

Static Public Attributes

static constexpr uint8_t kDataBitsPerByte = 7
 
static constexpr uint8_t kDataByteMask = (1 << kDataBitsPerByte) - 1
 
static constexpr uint8_t kMoreDataMask = (1 << kDataBitsPerByte)
 
static constexpr uint8_t kSignMask = (1 << (kDataBitsPerByte - 1))
 

Detailed Description

Definition at line 28 of file datastream.h.

Member Typedef Documentation

◆ only_if_signed

template<typename T , typename S >
using dart::LEB128Constants::only_if_signed = typename std::enable_if<std::is_signed<T>::value, S>::type

Definition at line 31 of file datastream.h.

◆ only_if_unsigned

template<typename T , typename S >
using dart::LEB128Constants::only_if_unsigned = typename std::enable_if<std::is_unsigned<T>::value, S>::type

Definition at line 36 of file datastream.h.

Member Data Documentation

◆ kDataBitsPerByte

constexpr uint8_t dart::LEB128Constants::kDataBitsPerByte = 7
staticconstexpr

Definition at line 40 of file datastream.h.

◆ kDataByteMask

constexpr uint8_t dart::LEB128Constants::kDataByteMask = (1 << kDataBitsPerByte) - 1
staticconstexpr

Definition at line 41 of file datastream.h.

◆ kMoreDataMask

constexpr uint8_t dart::LEB128Constants::kMoreDataMask = (1 << kDataBitsPerByte)
staticconstexpr

Definition at line 43 of file datastream.h.

◆ kSignMask

constexpr uint8_t dart::LEB128Constants::kSignMask = (1 << (kDataBitsPerByte - 1))
staticconstexpr

Definition at line 45 of file datastream.h.


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