SubArrayTElement StructureNaiad Help

[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

  NameDescription
Public methodSubArrayTElement(TElement)
Constructs a new empty subarray that can grow to the full size of the given array.
Public methodSubArrayTElement(TElement, Int32)
Constructs a new subarray that contains an initial number of elements and can grow to the full size of the given array.
Top
Methods

  NameDescription
Public methodEnsureAvailable
Returns true if the given number of elements is available in this subarray.
Top
Fields

  NameDescription
Public fieldArray
The array instance that backs this subarray.
Public fieldCount
The number of elements that have been written into this subarray.
Top
Properties

  NameDescription
Public propertyAvailable
The number of unoccupied elements in this subarray.
Public propertyItem
The element of this subarray at the given index.
Public propertyLength
The total number of (occupied and unoccupied) elements in this subarray.
Top
See Also

Reference