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

Method CopyAndAdvance

include/assimp/StreamReader.h:241–246  ·  view source on GitHub ↗

--------------------------------------------------------------------- Copy n bytes to an external buffer * @param out Destination for copying * @param bytes Number of bytes to copy */

Source from the content-addressed store, hash-verified

239 * @param out Destination for copying
240 * @param bytes Number of bytes to copy */
241 void CopyAndAdvance(void *out, size_t bytes) {
242 int8_t *ur = GetPtr();
243 SetPtr(ur + bytes); // fire exception if eof
244
245 ::memcpy(out, ur, bytes);
246 }
247
248 /// @brief Get the current offset from the beginning of the file
249 /// @return The current offset from the beginning of the file.

Callers 6

InternReadFileMethod · 0.80
InternReadFileMethod · 0.80
ReadBytesMethod · 0.80
ReadVectorMethod · 0.80
ReadQuaternionMethod · 0.80
ResolveImageMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected