Class PofSparseArray.NilPofValue
NilPofValue represents a value that does not exist in the original POF stream.
Implements
Inherited Members
Namespace: Tangosol.IO.Pof.Reflection
Assembly: Coherence.dll
Syntax
public class PofSparseArray.NilPofValue : SimplePofValue, IPofValue
Constructors
NilPofValue(IPofValue, IPofContext, int, int, int)
Construct a SimplePofValue instance wrapping the supplied binary.
Declaration
public NilPofValue(IPofValue valueParent, IPofContext ctx, int of, int nType, int nIndex)
Parameters
Type | Name | Description |
---|---|---|
IPofValue | valueParent | Parent value within the POF stream. |
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 | nIndex | Index of this value within the parent sparse array. |
Methods
GetSerializedValue()
Return this value's serialized form.
Declaration
public override Binary GetSerializedValue()
Returns
Type | Description |
---|---|
Binary | This value's serialized form. |
Overrides
GetValue(int)
Return the deserialized value which this IPofValue represents.
Declaration
public override object GetValue(int typeId)
Parameters
Type | Name | Description |
---|---|---|
int | typeId | The required Pof type of the returned value or T_UNKNOWN if the type is to be inferred from the serialized state. |
Returns
Type | Description |
---|---|
object | The deserialized value. |
Overrides
Exceptions
Type | Condition |
---|---|
InvalidCastException | If the value is incompatible with the specified type. |
SetValue(object)
Update this PofValue.
Declaration
public override void SetValue(object oValue)
Parameters
Type | Name | Description |
---|---|---|
object | oValue | New deserialized value for this PofValue. |
Overrides
Remarks
The changes made using this method will be immediately reflected in the result of GetValue() method, but will not be applied to the underlying POF stream until the ApplyChanges() method is invoked on the root IPofValue.