Class PofSparseArray
PofSparseArray is a IPofValue implementation for sparse arrays.
Inheritance
Implements
Inherited Members
Namespace: Tangosol.IO.Pof.Reflection
Assembly: Coherence.dll
Syntax
public class PofSparseArray : ComplexPofValue, IPofValue
Constructors
PofSparseArray(IPofValue, Binary, IPofContext, int, int, int)
Construct a PofSparseArray instance wrapping the supplied binary.
Declaration
public PofSparseArray(IPofValue valueParent, Binary binValue, IPofContext ctx, int of, int nType, int ofChildren)
Parameters
Type | Name | Description |
---|---|---|
IPofValue | valueParent | Parent value within the POF stream. |
Binary | binValue | Binary representation of this value. |
IPofContext | ctx | POF context to use when reading or writing properties. |
int | of | Offset of this value from the beginning of POF stream. |
int | nType | POF type identifier for this value. |
int | ofChildren | Offset of the first child element within this value. |
Methods
FindChildInternal(int, int, int)
Find the child value with the specified index.
Declaration
protected override IPofValue FindChildInternal(int nIndex, int ofStart, int iStart)
Parameters
Type | Name | Description |
---|---|---|
int | nIndex | Index of the child value to find. |
int | ofStart | Offset within the parent buffer to start search from. |
int | iStart | Index of the child value to start search from. |
Returns
Type | Description |
---|---|
IPofValue | The child value. |
Overrides
InstantiateNullValue(int, int)
Instantiate a PofSparseArray.NilPofValue (factory method).
Declaration
protected virtual PofSparseArray.NilPofValue InstantiateNullValue(int of, int nIndex)
Parameters
Type | Name | Description |
---|---|---|
int | of | Offset this value would be at if it existed. |
int | nIndex | Index of this value within the parent sparse array. |
Returns
Type | Description |
---|---|
PofSparseArray.NilPofValue | An instance of PofSparseArray.NilPofValue. |