Skip to content

Why does the Fw::Buffer constructor take a non-const data pointer? #2664

Closed Answered by LeStarch
epdalessandro asked this question in Q&A
Discussion options

You must be logged in to vote

Fw::Buffer wraps a pointer, but does not perform a copy.

Thus, if you pass a pointer to the constructor it will store that pointer along with the size and shuttle it through the system .

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@epdalessandro
Comment options

@timcanham
Comment options

@epdalessandro
Comment options

Answer selected by epdalessandro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants