[This is preliminary documentation and is subject to change.]
Represents a growable segment of an array, used for serialization.
Namespace: Microsoft.Research.Naiad.Serialization
Assembly: Microsoft.Research.Naiad (in Microsoft.Research.Naiad.dll) Version: 0.5.0.0 (0.5.0.0)
Syntax
C#
public struct SubArray<TElement>
Type Parameters
- TElement
- The type of elements.
The SubArrayTElement type exposes the following members.
Constructors
Name | Description | |
---|---|---|
SubArrayTElement(TElement) |
Constructs a new empty subarray that can grow to the full size of the given array.
| |
SubArrayTElement(TElement, Int32) |
Constructs a new subarray that contains an initial number of elements and can grow to the full size
of the given array.
|
Methods
Name | Description | |
---|---|---|
EnsureAvailable |
Returns true if the given number of elements is available in this subarray.
|
Fields
Name | Description | |
---|---|---|
Array |
The array instance that backs this subarray.
| |
Count |
The number of elements that have been written into this subarray.
|
Properties
Name | Description | |
---|---|---|
Available |
The number of unoccupied elements in this subarray.
| |
Item |
The element of this subarray at the given index.
| |
Length |
The total number of (occupied and unoccupied) elements in this subarray.
|
See Also