CoderContext :: Constructor |
01 | Starts a coder context. |
02 |
[C++] CoderContext(Coder &coder, uint16 version, char const *name); |
03 |
Parameters:
|
04 | The version will be serialized first; A Decoder will read the stored value, the Encoder writes the passed version number. The version that is stored in the stream will be returned at GetVersion(). |
05 | The logical end position of the coder will be set to the end of the serialized context. (This has no effect for an encoder). |
06 |
The version number parameter should at least be 1. Version 0 will be returned
if there is no context stored, which means the encoding party did not know
this inheritance level. Closing the context should have no other effect in this case, which is why the CoderContext does no dataSize serialization when it is closed (See Destructor() ). |
07 |
[C++] The name parameter will be stored within the Coder object (if it is a Decoder)
as long as the context is active. If a serialization error occurs and the Decoder object is thrown, the contained list of context names can be evaluated to possibly locate the problematic context. This function is not reproduced in C#, as there a call stack is automatically provided with an exception. |
08 |
Reference: net::semys Implementation: Semys Architecture See Also: Arch Coder Sub-System, CoderContext, GetVersion() |
Goto: Main Page; This page is part of the Semys software documentation. See About: Documentation for details. |