Why there is the calling of "read(buffer.get());" in the first example (inside of the 'while' loop)?
It is a 'char *buffer' type, unless I'm mistaken raw pointers don't have methods/member functions?
copy-paste error given the next example uses a smart ptr type that has a .get() to get the actual pointer.
copy-paste error given the next example uses a smart ptr type that has a .get() to get the actual pointer.