mirror of
				https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu.git
				synced 2025-05-12 00:45:25 +00:00 
			
		
		
		
	Merge pull request #89 from lioncash/vi-vector
vi: Copy data directly into the std::vector within Parcel's ReadBlock function
This commit is contained in:
		
						commit
						cf0daed0b8
					
				| @ -47,8 +47,9 @@ public: | ||||
|     } | ||||
| 
 | ||||
|     std::vector<u8> ReadBlock(size_t length) { | ||||
|         std::vector<u8> data(length); | ||||
|         std::memcpy(data.data(), buffer.data() + read_index, length); | ||||
|         const u8* const begin = buffer.data() + read_index; | ||||
|         const u8* const end = begin + length; | ||||
|         std::vector<u8> data(begin, end); | ||||
|         read_index += length; | ||||
|         read_index = Common::AlignUp(read_index, 4); | ||||
|         return data; | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 bunnei
						bunnei