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

Function ReadByte

code/AssetLib/FBX/FBXBinaryTokenizer.cpp:140–150  ·  view source on GitHub ↗

------------------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

138
139// ------------------------------------------------------------------------------------------------
140uint8_t ReadByte(const char* input, const char*& cursor, const char* end) {
141 if(Offset(cursor, end) < sizeof( uint8_t ) ) {
142 TokenizeError("cannot ReadByte, out of bounds",input, cursor);
143 }
144
145 uint8_t word;/* = *reinterpret_cast< const uint8_t* >( cursor )*/
146 ::memcpy( &word, cursor, sizeof( uint8_t ) );
147 ++cursor;
148
149 return word;
150}
151
152// ------------------------------------------------------------------------------------------------
153unsigned int ReadString(const char*& sbegin_out, const char*& send_out, const char* input,

Callers 4

ReadStringFunction · 0.85
TokenizeBinaryFunction · 0.85
ReadStringMethod · 0.85
ReadChunkMethod · 0.85

Calls 2

OffsetFunction · 0.85
TokenizeErrorFunction · 0.70

Tested by

no test coverage detected