Exemplo n.º 1
0
EASTLFixedString16Wrapper::EASTLFixedString16Wrapper(const char16_t* str)
{
#if STRINGWRAPPER_AVOID_HEAP_ALLOCATION
	new(mString16) FixedString16_128(str);
#else
	mString16 = EAWEBKIT_NEW("fixedstring16_128") FixedString16_128(str);
#endif
}
Exemplo n.º 2
0
EASTLFixedString16Wrapper::EASTLFixedString16Wrapper(const EASTLFixedString16Wrapper& rhs)
{
#if STRINGWRAPPER_AVOID_HEAP_ALLOCATION
	new(mString16) FixedString16_128();
#else
	mString16 = EAWEBKIT_NEW("fixedstring16_128") FixedString16_128();
#endif
	*(reinterpret_cast<FixedString16_128*>(mString16)) = *(reinterpret_cast<FixedString16_128*> ((rhs).GetImpl()));
}
Exemplo n.º 3
0
		EASTLFixedString16Wrapper& EASTLFixedString16Wrapper::operator =(const EASTLFixedString16Wrapper& rhs)
		{
			if(this == &rhs)
				return *this;

			EAWEBKIT_DELETE reinterpret_cast<FixedString16_128*>(mString16);
			mString16 = EAWEBKIT_NEW("fixedstring16_128") FixedString16_128();
			*(reinterpret_cast<FixedString16_128*>(mString16)) = *(reinterpret_cast<FixedString16_128*> ((rhs).GetImpl()));

			return *this;
		}
Exemplo n.º 4
0
EASTLFixedString16Wrapper& EASTLFixedString16Wrapper::operator =(const EASTLFixedString16Wrapper& rhs)
{
	if(this == &rhs)
		return *this;
#if STRINGWRAPPER_AVOID_HEAP_ALLOCATION
	reinterpret_cast<FixedString16_128*>(mString16)->~FixedString16_128();
	new(mString16) FixedString16_128();
#else
	EAWEBKIT_DELETE reinterpret_cast<FixedString16_128*>(mString16);
	mString16 = EAWEBKIT_NEW("fixedstring16_128") FixedString16_128();
#endif
	*(reinterpret_cast<FixedString16_128*>(mString16)) = *(reinterpret_cast<FixedString16_128*> ((rhs).GetImpl()));
	return *this;
}
Exemplo n.º 5
0
		EASTLFixedString16Wrapper::EASTLFixedString16Wrapper(const EASTLFixedString16Wrapper& rhs)
		{
			mString16 = EAWEBKIT_NEW("fixedstring16_128") FixedString16_128();
			*(reinterpret_cast<FixedString16_128*>(mString16)) = *(reinterpret_cast<FixedString16_128*> ((rhs).GetImpl()));
		}
Exemplo n.º 6
0
		EASTLFixedString16Wrapper::EASTLFixedString16Wrapper(const char16_t* str)
			: mString16(0)
		{
			mString16 = EAWEBKIT_NEW("fixedstring16_128") FixedString16_128(str);
		}
Exemplo n.º 7
0
		EASTLFixedString16Wrapper::EASTLFixedString16Wrapper()
			: mString16(0)
		{
			mString16 = EAWEBKIT_NEW("fixedstring16_128") FixedString16_128();
		}