DDraceNetwork Documentation
Loading...
Searching...
No Matches
bytes_be_test.cpp File Reference
#include "test.h"
#include <base/system.h>
#include <gtest/gtest.h>
Include dependency graph for bytes_be_test.cpp:

Functions

 TEST (BytePacking, RoundtripInt)
 TEST (BytePacking, RoundtripUnsigned)

Variables

static const int32_t INT_DATA [] = {0, 1, -1, 32, 64, 256, -512, 12345, -123456, 1234567, 12345678, 123456789, 2147483647, (-2147483647 - 1)}
static const uint32_t UINT_DATA [] = {0u, 1u, 2u, 32u, 64u, 256u, 512u, 12345u, 123456u, 1234567u, 12345678u, 123456789u, 2147483647u, 2147483648u, 4294967295u}

Function Documentation

◆ TEST() [1/2]

TEST ( BytePacking ,
RoundtripInt  )

◆ TEST() [2/2]

TEST ( BytePacking ,
RoundtripUnsigned  )

Variable Documentation

◆ INT_DATA

const int32_t INT_DATA[] = {0, 1, -1, 32, 64, 256, -512, 12345, -123456, 1234567, 12345678, 123456789, 2147483647, (-2147483647 - 1)}
static

◆ UINT_DATA

const uint32_t UINT_DATA[] = {0u, 1u, 2u, 32u, 64u, 256u, 512u, 12345u, 123456u, 1234567u, 12345678u, 123456789u, 2147483647u, 2147483648u, 4294967295u}
static