Class DefaultArrayFactory
Implementation of IArrayFactory which uses the default
array types implemented and exposed in Reminiscence.
Inheritance
System.Object
DefaultArrayFactory
Implements
Namespace: Mars.Common.IO.Mapped
Assembly: Mars.IO.dll
Syntax
public sealed class DefaultArrayFactory : object, IArrayFactory
Methods
CreateMemoryBackedArray<T>(Int64)
Creates an ArrayBase<T> fully backed by main memory,
with an initial capacity set to a given number of elements.
Declaration
public 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. |