コード例 #1
0
 public StatelessCallerAllocatedBufferMarshalling(ICustomTypeMarshallingStrategy innerMarshaller, TypeSyntax marshallerType, TypeSyntax bufferElementType, bool isLinearCollectionMarshalling)
 {
     _innerMarshaller               = innerMarshaller;
     _marshallerType                = marshallerType;
     _bufferElementType             = bufferElementType;
     _isLinearCollectionMarshalling = isLinearCollectionMarshalling;
 }
コード例 #2
0
 public StatefulLinearCollectionBlittableElementsMarshalling(
     ICustomTypeMarshallingStrategy innerMarshaller, MarshallerShape shape, TypeSyntax managedElementType, TypeSyntax unmanagedElementType, ExpressionSyntax numElementsExpression)
     : base(managedElementType, unmanagedElementType)
 {
     _innerMarshaller       = innerMarshaller;
     _shape                 = shape;
     _numElementsExpression = numElementsExpression;
 }
コード例 #3
0
 public StatefulLinearCollectionNonBlittableElementsMarshalling(
     ICustomTypeMarshallingStrategy innerMarshaller,
     MarshallerShape shape,
     TypeSyntax unmanagedElementType,
     IMarshallingGenerator elementMarshaller,
     TypePositionInfo elementInfo,
     ExpressionSyntax numElementsExpression)
     : base(unmanagedElementType, elementMarshaller, elementInfo)
 {
     _innerMarshaller       = innerMarshaller;
     _shape                 = shape;
     _numElementsExpression = numElementsExpression;
 }
コード例 #4
0
 public StatefulCallerAllocatedBufferMarshalling(ICustomTypeMarshallingStrategy innerMarshaller, TypeSyntax marshallerType, TypeSyntax bufferElementType)
 {
     _innerMarshaller   = innerMarshaller;
     _marshallerType    = marshallerType;
     _bufferElementType = bufferElementType;
 }
コード例 #5
0
 public StatelessFreeMarshalling(ICustomTypeMarshallingStrategy innerMarshaller, TypeSyntax marshallerType)
 {
     _innerMarshaller = innerMarshaller;
     _marshallerType  = marshallerType;
 }
コード例 #6
0
 public CustomTypeMarshallingGenerator(ICustomTypeMarshallingStrategy nativeTypeMarshaller, bool enableByValueContentsMarshalling)
 {
     _nativeTypeMarshaller             = nativeTypeMarshaller;
     _enableByValueContentsMarshalling = enableByValueContentsMarshalling;
 }