Class ValueDecoderFactory.BaseArrayDecoder

    • Field Detail

      • INITIAL_RESULT_BUFFER_SIZE

        protected static final int INITIAL_RESULT_BUFFER_SIZE
        Let's use some modest array size for allocating initial result buffer
        See Also:
        Constant Field Values
      • SMALL_RESULT_BUFFER_SIZE

        protected static final int SMALL_RESULT_BUFFER_SIZE
        When expanding 'small' result buffers, we will expand size by bigger factor than for larger ones.
        See Also:
        Constant Field Values
      • mStart

        protected int mStart
      • mEnd

        protected int mEnd
      • mCount

        protected int mCount
    • Constructor Detail

      • BaseArrayDecoder

        protected BaseArrayDecoder​(int start,
                                   int maxCount)
    • Method Detail

      • getCount

        public final int getCount()
        Specified by:
        getCount in class TypedArrayDecoder
        Returns:
        Number of elements decoded and contained
      • expand

        public abstract void expand()
        Method that can be called if the internal result buffer fills up (when hasRoom() returns false) and will expand result buffer to hold at least one more value.
      • calcNewSize

        protected int calcNewSize​(int currSize)