MCPcopy Create free account
hub / github.com/assimp/assimp / Copy

Function Copy

code/Common/Bitmap.cpp:88–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86
87template <typename T>
88inline std::size_t Copy(uint8_t *data, const T &field) {
89#ifdef AI_BUILD_BIG_ENDIAN
90 T field_swapped = AI_BE(field);
91 std::memcpy(data, &field_swapped, sizeof(field));
92 return sizeof(field);
93#else
94 std::memcpy(data, &AI_BE(field), sizeof(field));
95 return sizeof(field);
96#endif
97}
98
99void Bitmap::WriteHeader(Header &header, IOStream *file) {
100 uint8_t data[Header::header_size];

Callers 14

CopyMethod · 0.85
TESTFunction · 0.85
ContainerEqMatcherMethod · 0.85
PointwiseMatcherMethod · 0.85
DoItMethod · 0.85
SubdivideMethod · 0.85
WriteHeaderMethod · 0.85
WriteDIBMethod · 0.85
MergeScenesMethod · 0.85
CopyPtrArrayFunction · 0.85
CopySceneMethod · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68