Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[API] Enable access to data buffer #96

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions benchmark/api/internally_implemented.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
1 change: 1 addition & 0 deletions benchmark/api/internally_implemented.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
Loading