--------------------------------------------------------------------- Copy n bytes to an external buffer * @param out Destination for copying * @param bytes Number of bytes to copy */
| 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. |
no outgoing calls
no test coverage detected