cesium-native
0.46.0
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
n
o
p
q
r
s
t
u
v
w
Functions
a
c
e
f
g
h
i
j
l
n
o
p
r
s
t
u
v
w
Typedefs
Enumerations
a
c
e
f
g
i
k
l
p
r
s
t
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
f
i
l
n
o
p
r
s
t
v
Enumerations
Files
File List
•
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Pages
Loading...
Searching...
No Matches
SpanHelper.h
1
#pragma once
2
3
#include <span>
4
5
namespace
CesiumUtility
{
12
template
<
typename
To,
typename
From>
13
std::span<To>
reintepretCastSpan
(
const
std::span<From>& from)
noexcept
{
14
return
std::span<To>(
15
reinterpret_cast<
To*
>
(from.data()),
16
from.size() *
sizeof
(From) /
sizeof
(To));
17
}
13
std::span<To>
reintepretCastSpan
(
const
std::span<From>& from)
noexcept
{
…
}
18
}
// namespace CesiumUtility
CesiumUtility
Utility classes for Cesium.
Definition
TilesetExternals.h:16
CesiumUtility::reintepretCastSpan
std::span< To > reintepretCastSpan(const std::span< From > &from) noexcept
This function converts between span types. This function has the same rules with C++ reintepret_cast ...
Definition
SpanHelper.h:13
CesiumUtility
include
CesiumUtility
SpanHelper.h
Generated by
1.12.0