-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Sean Young <[email protected]>
- Loading branch information
Showing
10 changed files
with
186 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#pragma once | ||
/** | ||
* @brief Solana keccak system call | ||
**/ | ||
|
||
#include <sol/types.h> | ||
|
||
#ifdef __cplusplus | ||
extern "C" | ||
{ | ||
#endif | ||
|
||
/** | ||
* Maximum size of return data | ||
*/ | ||
#define MAX_RETURN_DATA 1024 | ||
|
||
/** | ||
* Set the return data | ||
* | ||
* @param bytes byte array to set | ||
* @param bytes_len length of byte array. This may not exceed MAX_RETURN_DATA. | ||
*/ | ||
void sol_set_return_data(const uint8_t *bytes, uint64_t bytes_len); | ||
|
||
/** | ||
* Get the return data | ||
* | ||
* @param bytes byte buffer | ||
* @param bytes_len maximum length of buffer | ||
* @param result length of return data (may exceed bytes_len if the return data is longer) | ||
*/ | ||
uint64_t sol_get_return_data(const uint8_t *bytes, uint64_t bytes_len); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
/**@}*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters