static TObjectPtr CreateAnyTypeClass(TTypeInfo objectType, CObjectMemoryPool* /*memoryPool*/) { size_t size = objectType->GetSize(); TObjectPtr obj = new char[size]; memset(obj, 0, size); return obj; }
BEGIN_NCBI_SCOPE CChoicePointerTypeInfo::CChoicePointerTypeInfo(TTypeInfo pointerType) : CParent(pointerType->GetSize(), "", TConstObjectPtr(0), &CVoidTypeFunctions::Create, typeid(bool), &GetPtrIndex, &SetPtrIndex, &ResetPtrIndex) { SetPointerType(pointerType); }
CAliasTypeInfo::CAliasTypeInfo(const string& name, TTypeInfo type) : CParent(name, type->GetSize(), type), m_DataOffset(0), m_FullAlias(false) { InitAliasTypeInfoFunctions(); }