Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sqlite/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net core .NET内核在内存流类中,可以使用内存<;T>;作为存储_.net Core - Fatal编程技术网

.net core .NET内核在内存流类中,可以使用内存<;T>;作为存储

.net core .NET内核在内存流类中,可以使用内存<;T>;作为存储,.net-core,.net Core,我一直在寻找一种类似于MemoryStream类的类型,但它使用Memory作为存储介质,而不是字节 这样做的原因是,我想创建内存流,其数据可能来自托管或非托管源,并避免复制所述数据带来的性能成本。 有人知道从System.Stream派生的类型适用于此场景吗?我查看了corefx github上的公开问题,似乎拥有这样的类型确实很好,他们对此也有公开问题。然而,就目前的情况来看,这样的东西还没有出现

我一直在寻找一种类似于
MemoryStream
类的类型,但它使用
Memory
作为存储介质,而不是字节 这样做的原因是,我想创建内存流,其数据可能来自托管或非托管源,并避免复制所述数据带来的性能成本。
有人知道从
System.Stream
派生的类型适用于此场景吗?

我查看了corefx github上的公开问题,似乎拥有这样的类型确实很好,他们对此也有公开问题。然而,就目前的情况来看,这样的东西还没有出现