| 87 | // -------------------------------------------------------------------------------------------------------------------- |
| 88 | |
| 89 | IPLerror CContext::createSerializedObject(IPLSerializedObjectSettings* settings, |
| 90 | ISerializedObject** serializedObject) |
| 91 | { |
| 92 | if (!settings || !serializedObject) |
| 93 | return IPL_STATUS_FAILURE; |
| 94 | |
| 95 | try |
| 96 | { |
| 97 | auto _serializedObject = reinterpret_cast<CSerializedObject*>(gMemory().allocate(sizeof(CSerializedObject), Memory::kDefaultAlignment)); |
| 98 | new (_serializedObject) CSerializedObject(this, settings); |
| 99 | *serializedObject = _serializedObject; |
| 100 | } |
| 101 | catch (Exception exception) |
| 102 | { |
| 103 | return static_cast<IPLerror>(exception.status()); |
| 104 | } |
| 105 | |
| 106 | return IPL_STATUS_SUCCESS; |
| 107 | } |
| 108 | |
| 109 | } |
no test coverage detected