/******************************************************************************
*
-* Copyright (c) 2019 Intel.
+* Copyright (c) 2021 Intel.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
**/
+#include "nr5g_fapi_memory.h"
+
#include <rte_memcpy.h>
#include <string.h>
#include "nr5g_fapi_wls.h"
-uint8_t nr5g_fapi_memcpy_bound_check(
- void *d,
+inline uint8_t nr5g_fapi_memcpy_bound_check(
+ void * const d,
size_t x,
- const void *s,
+ const void * const s,
size_t n)
{
// Memory block size and destination/source boundary check
return SUCCESS;
}
-uint8_t nr5g_fapi_memset_bound_check(
- void *s,
+inline uint8_t nr5g_fapi_memset_bound_check(
+ void * const s,
size_t x,
int32_t c,
size_t n)
return SUCCESS;
}
-uint8_t nr5g_fapi_strcpy_bound_check(
- char *d,
+inline uint8_t nr5g_fapi_strcpy_bound_check(
+ char * const d,
size_t x,
- const char *s,
+ const char * const s,
size_t n)
{
// Memory block size and destination/source boundary check