Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- std::vector<uint8> & getBuffer() const
- {
- return m_myBuffer;
- }
- int someFunction()
- {
- std::vector<uint8> myFileBuffer = myFile.getBuffer();
- }
- // Note the extra const on this line.
- std::vector<uint8> const& getBuffer() const
- {
- return m_myBuffer;
- }
- std::vector<uint8> const& myFileBuffer = myFile.getBuffer();
- std::vector<uint8>& myFileBuffer = myFile.getBuffer();
- std::vector<uint8> myFileBuffer = myFile.getBuffer();
Add Comment
Please, Sign In to add comment