// custom field constructor public TypeDesc( string name, DescFlags flags, CustomReadFunc customReadFunc, object?[]?customParams = null, string?outputName = null) { Name = name; FieldType = CUSTOM; NumElements = 1; Flags = flags; _customReadFunc = customReadFunc; CustomParams = customParams; OutputName = outputName; }
// everything else public TypeDesc( string name, FieldType fieldType, DescFlags flags = DescFlags.FTYPEDESC_SAVE, ushort numElements = 1, string?inputName = null, string?outputName = null, string?mapName = null, CustomReadFunc?customReadFunc = null, object?[]?customParams = null) { FieldType = fieldType; Name = name; InputName = inputName; OutputName = outputName; MapName = mapName; NumElements = numElements; Flags = flags; _customReadFunc = customReadFunc; CustomParams = customParams; }
public void DefineUtilMap(string name, FieldType keyType, FieldType valType, string?embeddedKeyName, string?embeddedValName, DescFlags utlMapFlags, CustomReadFunc?keyReadFunc, CustomReadFunc?valReadFunc) { }
public void DefineVector(string name, FieldType elemFieldType, DescFlags vecFlags = DescFlags.FTYPEDESC_SAVE, CustomReadFunc?elemReadFunc = null) { }
public void DefineVector(string name, string elementType, DescFlags vecFlags = DescFlags.FTYPEDESC_SAVE) { }
public void DefineCustomField(string name, CustomReadFunc customReadFunc, object?[]?customParams = null, DescFlags flags = DescFlags.FTYPEDESC_SAVE) { }
public void DefineKeyField(string name, string mapName, FieldType fieldType, ushort count = 1, DescFlags flags = DescFlags.FTYPEDESC_SAVE) { }
protected void DefineCustomField( string name, CustomReadFunc customReadFunc, object?[]?customParams = null, DescFlags flags = FTYPEDESC_SAVE) => _handler.DefineCustomField(name, customReadFunc, customParams, flags);