Class DefaultArrayFactory
Implementation of IArrayFactory which uses the default
array types implemented and exposed in Reminiscence.
Inheritance
System.Object
DefaultArrayFactory
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Mars.Common.IO.Mapped
Assembly: Mars.IO.dll
Syntax
public sealed class DefaultArrayFactory : IArrayFactory
Methods
| Improve this Doc View SourceCreateMemoryBackedArray<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. |