E57 Foundation API v1.1.312  Aug. 10, 2011
MemoryRepresentation memoryRepresentation ( ) const

Get memory representation of the elements in this SourceDestBuffer.

The memory representation is deduced from which overloaded SourceDestBuffer constructor was used. The memory representation is independent of the type and minimum/maximum bounds of the node in the prototype that the SourceDestBuffer will transfer to/from. However, some combinations will result in an error if doConversion is not requested (e.g. E57_INT16 and FloatNode).

Some combinations risk an error occurring during a write, if a value is too large (e.g. writing a E57_INT16 memory representation to an IntegerNode with minimum=-1024 maximum=1023). Some combinations risk an error occurring during a read, if a value is too large (e.g. reading an IntegerNode with minimum=-1024 maximum=1023 int an E57_INT8 memory representation). Some combinations are never possible (e.g. E57_INT16 and StringNode).

Postcondition:
No visible state is modified.
Returns:
Memory representation of the elements in buffer.
Exceptions:
E57_ERROR_INTERNALAll objects in undocumented state
See also:
SourceDestBufferFunctions.cpp example, MemoryRepresentation, NodeType
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines