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 }
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())); }
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; }
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; }
EASTLFixedString16Wrapper::EASTLFixedString16Wrapper(const EASTLFixedString16Wrapper& rhs) { mString16 = EAWEBKIT_NEW("fixedstring16_128") FixedString16_128(); *(reinterpret_cast<FixedString16_128*>(mString16)) = *(reinterpret_cast<FixedString16_128*> ((rhs).GetImpl())); }
EASTLFixedString16Wrapper::EASTLFixedString16Wrapper(const char16_t* str) : mString16(0) { mString16 = EAWEBKIT_NEW("fixedstring16_128") FixedString16_128(str); }
EASTLFixedString16Wrapper::EASTLFixedString16Wrapper() : mString16(0) { mString16 = EAWEBKIT_NEW("fixedstring16_128") FixedString16_128(); }