Publishing 2019 R1 content
[platform/upstream/dldt.git] / inference-engine / src / inference_engine / ie_memcpy.h
1 // Copyright (C) 2018-2019 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
3 //
4
5 #include <stdlib.h>
6 #include "ie_api.h"
7
8 /**
9  * @brief Copies bytes between buffers with security enhancements
10  * Copies count bytes from src to dest. If the source and destination
11  * overlap, the behavior is undefined.
12  * @param dest
13  * pointer to the object to copy to
14  * @param destsz
15  * max number of bytes to modify in the destination (typically the size
16  * of the destination object)
17  * @param src
18  pointer to the object to copy from
19  * @param count
20  number of bytes to copy
21  @return zero on success and non-zero value on error.
22  */
23
24 INFERENCE_ENGINE_API_CPP(int) ie_memcpy(void* dest, size_t destsz, void const* src, size_t count);