Click or drag to resize

OriginAnyParserGetDataTypeToDeserialize Method

Gets the type of data to deserialize from dataType, dataTypeU and valueSize.

Namespace: Altaxo.Serialization.Origin
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public static DeserializedDataType GetDataTypeToDeserialize(
	int dataType,
	int dataTypeU,
	int valueSize
)

Parameters

dataType  Int32
Type of the data.
dataTypeU  Int32
The data typeU.
valueSize  Int32
Size of the value in bytes.

Return Value

DeserializedDataType
The data type to deserialize.
Exceptions
ExceptionCondition
NotImplementedExceptionThe combination of data type 0x{dataType:X} and valueSize={valueSize} is not implemented. Column name: {newSpreadColumn.Name}, spreadsheet name: {SpreadSheets[spread].Name}.
Remarks
C#
Working hypothesis:
dataType & 0x800 != 0 => Integer data type (4 byte, 2 byte, or 1 byte)
dataType & 0x100 != 0 => Combined text and number
dataType & 0x200 != 0 => Complex
dataType & 0x002 != 0 => Single instead of double (if floating point number) or short instead of int (if integer type)
dataType & 0x020 != 0 => Byte instead of int (if integer type) or text (if not an integer type)
dataType == 0x6021 => Text
See Also