WITH typeInfo: typeInfo
SELECT
FROM
Null, Basic, RelativePtr, Opaque =>
These basic types just need copying.
Private.CopyType[ nest: nest,
variableName: marshalName, variableInfo: typeInfo,
parentInfo: parentInfo, marshalInfo: marshalInfo ];
Transfer => Private.MarshalTransfer[
marshalName, typeInfo, parentInfo, marshalInfo, nest, options];
Record => Private.MarshalRecord[
marshalName, typeInfo, parentInfo, marshalInfo, nest, options];
VariantPart => Private.MarshalVariantPart[
marshalName, typeInfo, parentInfo, marshalInfo, nest, options];
Pointer => Private.MarshalPointer[
marshalName, typeInfo, parentInfo, marshalInfo, nest, options];
Ref => Private.MarshalRef[
marshalName, typeInfo, parentInfo, marshalInfo, nest, options];
List => Private.MarshalList[
marshalName, typeInfo, parentInfo, marshalInfo, nest, options];
String => MarshalString[
marshalName, typeInfo, parentInfo, marshalInfo, nest, options];
Rope => MarshalRope[
marshalName, typeInfo, parentInfo, marshalInfo, nest];
Atom => MarshalAtom[
marshalName, typeInfo, parentInfo, marshalInfo, nest];
StringBody => MarshalStringBody[
marshalName, typeInfo, parentInfo, marshalInfo, nest, options];
Text => MarshalText[
marshalName, typeInfo, parentInfo, marshalInfo, nest, options];
Array => Private.MarshalArray[
marshalName, typeInfo, parentInfo, marshalInfo, nest, options];
Descriptor => Private.MarshalDescriptor[
marshalName, typeInfo, parentInfo, marshalInfo, nest, options];
Sequence => Private.MarshalSequence[
marshalName, typeInfo, parentInfo, marshalInfo, nest, options];
Zone =>
-- Zones must be handles.
Private.Error[code: ImproperPassingMethod, type: type];
Definition, Any, Other =>
ERROR; -- Unimplemented marshalings should be caught above.
ENDCASE => ERROR;
StopReadonly[ nest: nest,
name: name, typeInfo: typeInfo,
marshalName: marshalName, marshalInfo: marshalInfo ];