3
0
Fork 0
forked from suyu/suyu
suyu/src/core/hle/service/filesystem
Lioncash 3e9b79e088 fsp_srv: Remove unnecessary std::vector construction in IDirectory's Read() function
We were using a second std::vector as a buffer to convert another
std::vector's data into a byte sequence, however we can just use
pointers to the original data and use them directly with WriteBuffer,
which avoids copying the data at all into a separate std::vector.

We simply cast the pointers to u8* (which is allowed by the standard,
given std::uint8_t is an alias for unsigned char on platforms that we
support).
2018-07-19 10:46:54 -04:00
..
filesystem.cpp Virtual Filesystem 2: Electric Boogaloo (#676) 2018-07-18 18:07:11 -07:00
filesystem.h Virtual Filesystem 2: Electric Boogaloo (#676) 2018-07-18 18:07:11 -07:00
fsp_srv.cpp fsp_srv: Remove unnecessary std::vector construction in IDirectory's Read() function 2018-07-19 10:46:54 -04:00
fsp_srv.h Virtual Filesystem 2: Electric Boogaloo (#676) 2018-07-18 18:07:11 -07:00