Searched refs:target_buffer (Results 1 – 2 of 2) sorted by relevance
70 uint8_t *target_buffer = new(std::nothrow) uint8_t[length]; in read_from_buffer() local71 if (target_buffer == nullptr) return ERROR_MEMORY_ALLOCATION_FAILED; in read_from_buffer()73 memcpy(target_buffer, *buffer, length); in read_from_buffer()75 *target = { target_buffer, length }; in read_from_buffer()
190 size_t open_and_read_file(const char *filename, void *target_buffer, size_t max_bytes) {193 CHECK(target_buffer != NULL);