Skip to content

Question: Is there any planned support for Memory<> and Span<>? #824

@k62o

Description

@k62o

Hi all,

I'm creating an API with IDL 3 that has the following signature (or a similar one):
void Process(UInt8[] value);

With C++/WinRT (2.0.210403.2) I have a nice array_view API:
void Process(array_view<uint8_t> value);
This allows to support many data types with no overhead.

With C#/WinRT (1.2.5) I have an Array API:
void Process(byte[] value);
This version does not allow us to pass Memory<byte> or Span<byte> that we use in other parts of our application. We may need to create a somewhat useless temporary array.

Do you have plan for Memory<T> and Span<T> support instead of T[]?

Regards,
Guillaume

Metadata

Metadata

Assignees

No one assigned

    Labels

    AssemblyVersion changeRequires assembly version change for WinRT.RuntimeenhancementNew feature or requestperformanceRelated to performance workquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions