-
On behalf of a library user who contacted me privately I set a pointer to fetch the address value of the buffer, and put the address value of the buffer. However, I get the following error:
in code: CircularBuffer<char, 10> chars;
char* pGet = NULL;
void loop()
{
pGet = &chars[0];
} How can I get the address value of the buffer? I tried changing the code as follows, but it also failed. |
Beta Was this translation helpful? Give feedback.
Answered by
rlogiacco
Nov 16, 2018
Replies: 1 comment
-
What about the following? char c = chars[0];
pGet = &c; The inability to obtain a pointer directly of the internal structure is a sort of protection of the internal representation... |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
rlogiacco
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What about the following?
The inability to obtain a pointer directly of the internal structure is a sort of protection of the internal representation...