Class ChannelArrayRequestImpl

    • Field Detail

      • data

        protected org.epics.pvdata.pv.PVArray data
      • putData

        protected org.epics.pvdata.pv.PVArray putData
      • offset

        protected int offset
      • count

        protected int count
      • stride

        protected int stride
      • length

        protected int length
    • Constructor Detail

      • ChannelArrayRequestImpl

        protected ChannelArrayRequestImpl​(ChannelImpl channel,
                                          ChannelArrayRequester callback,
                                          org.epics.pvdata.pv.PVStructure pvRequest)
    • Method Detail

      • send

        public void send​(ByteBuffer buffer,
                         TransportSendControl control)
        Description copied from interface: TransportSender
        Called by transport. By this call transport gives callee ownership over the buffer. Calls on TransportSendControl instance must be made from calling thread. Moreover, ownership is valid only for the time of call of this method. NOTE: these limitations allow efficient implementation.
        Specified by:
        send in interface TransportSender
        Overrides:
        send in class BaseRequestImpl
        Parameters:
        buffer - buffer to send.
        control - transport send control instance.
      • getArray

        public void getArray​(int offset,
                             int count,
                             int stride)
        Description copied from interface: ChannelArray
        get from the remote array.
        Specified by:
        getArray in interface ChannelArray
        Parameters:
        offset - The offset in the remote array, i.e. the PVArray returned by ChannelArrayRequester.channelArrayConnect.
        count - The number of elements to get, 0 means "till the end of array".
        stride - 1 means all the elements from offset to count, 2 means every other, 3 means every third, etc.
      • putArray

        public void putArray​(org.epics.pvdata.pv.PVArray putArray,
                             int offset,
                             int count,
                             int stride)
        Description copied from interface: ChannelArray
        put to the remote array.
        Specified by:
        putArray in interface ChannelArray
        Parameters:
        putArray - array to put.
        offset - The offset in the remote array, i.e. the PVArray returned by ChannelArrayRequester.channelArrayConnect.
        count - The number of elements to put, 0 means "entire array".
        stride - 1 means all the elements from offset to count, 2 means every other, 3 means every third, etc.
      • setLength

        public void setLength​(int length)
        Description copied from interface: ChannelArray
        Set the length and/or the capacity.
        Specified by:
        setLength in interface ChannelArray
        Parameters:
        length - The new length.
      • getLength

        public void getLength()
        Description copied from interface: ChannelArray
        Get the length and the capacity.
        Specified by:
        getLength in interface ChannelArray