Searched refs:target_buffer (Results 1 – 2 of 2) sorted by relevance
86 uint8_t *target_buffer = new(std::nothrow) uint8_t[length]; in read_from_buffer() local87 if (target_buffer == nullptr) return ERROR_MEMORY_ALLOCATION_FAILED; in read_from_buffer()89 memcpy(target_buffer, *buffer, length); in read_from_buffer()91 *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);