Flutter Engine
The Flutter Engine
Namespaces | Macros | Functions | Variables
datastream_test.cc File Reference
#include "vm/datastream.h"
#include "platform/assert.h"
#include "vm/unit_test.h"

Go to the source code of this file.

Namespaces

namespace  dart
 

Macros

#define DEFINE_LARGE_CONSTANTS(T)
 

Functions

 dart::TEST_CASE (BaseWriteStream_Write)
 
 dart::TEST_CASE (BaseWriteStream_WriteUnsigned)
 
template<typename T >
void dart::TestRaw ()
 
 dart::TEST_CASE (ReadStream_Read16)
 
 dart::TEST_CASE (ReadStream_Read32)
 
 dart::TEST_CASE (ReadStream_Read64)
 
 dart::TEST_CASE (BaseWriteStream_WriteLEB128)
 
 dart::TEST_CASE (BaseWriteStream_WriteSLEB128)
 

Variables

static constexpr intptr_t dart::kUnsignedEnd = kMaxUint16
 
static constexpr intptr_t dart::kSignedStart = kMinInt16
 
static constexpr intptr_t dart::kSignedEnd = kMaxInt16
 

Macro Definition Documentation

◆ DEFINE_LARGE_CONSTANTS

#define DEFINE_LARGE_CONSTANTS (   T)
Value:
using Unsigned = typename std::make_unsigned<T>::type; \
constexpr T all_ones = static_cast<T>(-1); /* 111... */ \
constexpr T min = \
static_cast<T>(static_cast<Unsigned>(1) \
<< (kBitsPerByte * sizeof(T) - 1)); /* 100... */ \
constexpr T max = \
static_cast<T>(static_cast<Unsigned>(min) - 1); /* 011... */ \
constexpr T half_min = min / 2; /* 110... */ \
constexpr T half_max = max / 2; /* 001... */
GLenum type
static float max(float r, float g, float b)
Definition: hsl.cpp:49
static float min(float r, float g, float b)
Definition: hsl.cpp:48
constexpr intptr_t kBitsPerByte
Definition: globals.h:463
#define T
Definition: precompiler.cc:65

Definition at line 20 of file datastream_test.cc.