Class PofSparseArray

    • Constructor Detail

      • PofSparseArray

        public PofSparseArray​(PofValue valueParent,
                              ReadBuffer bufValue,
                              PofContext ctx,
                              int of,
                              int nType,
                              int ofChildren)
        Construct a PofSparseArray instance wrapping the supplied buffer.
        Parameters:
        valueParent - parent value within the POF stream
        bufValue - buffer containing POF representation of this value
        ctx - POF context to use when reading or writing properties
        of - offset of this value from the beginning of POF stream
        nType - POF type identifier for this value
        ofChildren - offset of the first child element within this value
    • Method Detail

      • findChildInternal

        protected PofValue findChildInternal​(int nIndex,
                                             int ofStart,
                                             int iStart)
        Find the child value with the specified index.
        Specified by:
        findChildInternal in class ComplexPofValue
        Parameters:
        nIndex - index of the child value to find
        ofStart - offset within the parent buffer to start search from
        iStart - index of the child value to start search from
        Returns:
        the child value
      • instantiateNilValue

        protected PofSparseArray.NilPofValue instantiateNilValue​(int of,
                                                                 int nIndex)
        Instantiate a PofSparseArray.NilPofValue (factory method).
        Parameters:
        of - offset this value would be at if it existed
        nIndex - index of this value within the parent sparse array
        Returns:
        a NilPofValue instance