diff --git a/benchmark/api/internally_implemented.cpp b/benchmark/api/internally_implemented.cpp index 5736e881..d6a10380 100644 --- a/benchmark/api/internally_implemented.cpp +++ b/benchmark/api/internally_implemented.cpp @@ -322,3 +322,12 @@ size_t ee_get_buffer(uint8_t* buffer, size_t max_len) { } return len; } + +/** + * @brief get data buffer pointer + * + * @return a pointer to gp_buff; + */ +uint8_t* ee_get_buffer_pointer() { + return gp_buff; +} diff --git a/benchmark/api/internally_implemented.h b/benchmark/api/internally_implemented.h index 62faf0ab..cb16a023 100644 --- a/benchmark/api/internally_implemented.h +++ b/benchmark/api/internally_implemented.h @@ -56,6 +56,7 @@ void ee_benchmark_initialize(void); long ee_hexdec(char *); void ee_infer(size_t n, size_t n_warmup); size_t ee_get_buffer(uint8_t* buffer, size_t max_len); +uint8_t* ee_get_buffer_pointer(); arg_claimed_t ee_buffer_parse(char *command); arg_claimed_t ee_profile_parse(char *command);