Interface IArrayFactory
Factory for creating arrays. These "arrays" are not your typical CLR
T[]
.
They act the same for the most part, but they can be much
larger and do not necessarily have to be stored contiguously, nor even
fully in main memory.
Assembly: Mars.IO.dll
Syntax
public interface IArrayFactory
Methods
|
Improve this Doc
View Source
CreateMemoryBackedArray<T>(Int64)
Creates an
ArrayBase<T> fully backed by main memory,
with an initial capacity set to a given number of elements.
Declaration
ArrayBase<T> CreateMemoryBackedArray<T>(long size)
Parameters
Type |
Name |
Description |
System.Int64 |
size |
The number of elements that the array needs to fit.
|
Returns
Type |
Description |
ArrayBase<T> |
An ArrayBase<T> fully backed by main memory, with its
size set to size elements.
|
Type Parameters
Name |
Description |
T |
The type of element stored in the array.
|
Extension Methods