Debug Win32 Debug x64 Release Win32 Release x64 {9DC1ABE2-D18B-48FB-81D2-8C50ADC57BCF} Format Win32Proj Application Unicode Windows7.1SDK Application Unicode Windows7.1SDK Application Unicode Windows7.1SDK Application Unicode Windows7.1SDK <_ProjectFileVersion>10.0.40219.1 Debug\ Debug\ true true $(Platform)\$(Configuration)\ $(Platform)\$(Configuration)\ true true
/*
 Derived from source code of TrueCrypt 7.1a, which is
 Copyright (c) 2008-2012 TrueCrypt Developers Association and which is governed
 by the TrueCrypt License 3.0.

 Modifications and additions to the original source code (contained in this file)
 and all other portions of this file are Copyright (c) 2013-2017 IDRIX
 and are governed by the Apache License 2.0 the full text of which is
 contained in the file License.txt included in VeraCrypt binary and source
 code distribution packages.
*/

#ifndef TC_HEADER_Platform_MemoryStream
#define TC_HEADER_Platform_MemoryStream

#include "PlatformBase.h"
#include "Stream.h"

namespace VeraCrypt
{
	class MemoryStream : public Stream
	{
	public:
		MemoryStream () : ReadPosition (0) { }
		MemoryStream (const ConstBufferPtr &data);
		virtual ~MemoryStream () { }

		operator ConstBufferPtr () const { return ConstBufferPtr (&Data[0], Data.size()); }

		virtual uint64 Read (const BufferPtr &buffer);
		virtual void ReadCompleteBuffer (const BufferPtr &buffer);
		virtual void Write (const ConstBufferPtr &data);

	protected:
		vector <byte> Data;
		size_t ReadPosition;
	};
}

#endif // TC_HEADER_Platform_MemoryStream
) MultiThreaded true All $(IntDir) Level4 ProgramDatabase 4057;4100;4127;4201;4204;4701;4706;4131;%(DisableSpecificWarnings) ..\Crypto\x64\Release\crypto.lib;..\Common\x64\Release\Zip.lib;mpr.lib;%(AdditionalDependencies) $(OutDir)VeraCryptFormat.exe false mpr.dll;%(DelayLoadDLLs) true true Windows true true true true MachineX64 Format.manifest;%(AdditionalManifestFiles) copy $(TargetPath) "..\Release\Setup Files\VeraCrypt Format-x64.exe" WIN64;%(PreprocessorDefinitions) CompileAsCpp CompileAsCpp CompileAsCpp CompileAsCpp CompileAsCpp CompileAsCpp CompileAsCpp CompileAsCpp CompileAsCpp CompileAsCpp CompileAsCpp CompileAsCpp CompileAsCpp CompileAsCpp CompileAsCpp CompileAsCpp CompileAsCpp CompileAsCpp CompileAsCpp CompileAsCpp Designer true true true true {8b7f059f-e4c7-4e11-88f5-ee8b8433072e} false {993245cf-6b70-47ee-91bb-39f8fc6dc0e7} false {ef5ef444-18d0-40d7-8dfa-775ec4448602} false