使用 CustomImplementationFactory 创建内存流的自定义实现

可能的使用场景

Aspose.Cells 提供了一个名为 APICellsHelper.CustomImplementationFactory这使用户能够提供自定义实现,例如使用可回收内存实现而不是默认的 MemoryStream。

使用 CustomImplementationFactory 创建内存流的自定义实现

下面的示例代码说明了如何使用CellsHelper.CustomImplementationFactory在你的程序中。有时,系统中有足够的内存,但内存不连续。 Memory Stream 对象使用连续内存,但您可以提供 Memory Stream 的实现,使其使用非连续内存,

示例代码