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) using pointer as a counter #2735

Open
loziniak opened this issue Feb 11, 2025 · 3 comments
Open

(api) using pointer as a counter #2735

loziniak opened this issue Feb 11, 2025 · 3 comments

Comments

@loziniak
Copy link
Contributor

Is it possible to use Pointer as a pure counter? I don't need to point at anything, but pointer target is not optional.

@happybeing
Copy link
Contributor

You can put what you like in the target (it's just [u8; 32]) or use the built in counter if you just want to increment it.

@loziniak
Copy link
Contributor Author

The problem is I cannot put nothing there :-)

@happybeing
Copy link
Contributor

Then put something, just dummy bytes. It's a pointer so you have to provide a target, but it doesn't have to point at anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants