Class PlatformTargetProxyImpl

    • Constructor Detail

      • PlatformTargetProxyImpl

        public PlatformTargetProxyImpl​(PlatformTarget target,
                                       PlatformContext platformCtx)
        Parameters:
        target - Platform target.
        platformCtx - Platform context.
    • Method Detail

      • inLongOutLong

        public long inLongOutLong​(int type,
                                  long val)
                           throws Exception
        Operation accepting long value and returning long value.
        Specified by:
        inLongOutLong in interface PlatformTargetProxy
        Parameters:
        type - Operation type.
        val - Value.
        Returns:
        Result.
        Throws:
        Exception - If case of failure.
      • inStreamOutLong

        public long inStreamOutLong​(int type,
                                    long memPtr)
                             throws Exception
        Operation accepting memory stream and returning long value.
        Specified by:
        inStreamOutLong in interface PlatformTargetProxy
        Parameters:
        type - Operation type.
        memPtr - Memory pointer.
        Returns:
        Result.
        Throws:
        Exception - If case of failure.
      • inStreamOutObject

        public Object inStreamOutObject​(int type,
                                        long memPtr)
                                 throws Exception
        Operation accepting memory stream and returning object.
        Specified by:
        inStreamOutObject in interface PlatformTargetProxy
        Parameters:
        type - Operation type.
        memPtr - Memory pointer.
        Returns:
        Result.
        Throws:
        Exception - If case of failure.
      • outStream

        public void outStream​(int type,
                              long memPtr)
                       throws Exception
        Operation returning result to memory stream.
        Specified by:
        outStream in interface PlatformTargetProxy
        Parameters:
        type - Operation type.
        memPtr - Memory pointer.
        Throws:
        Exception - In case of failure.
      • inStreamAsync

        public void inStreamAsync​(int type,
                                  long memPtr)
                           throws Exception
        Asynchronous operation accepting memory stream.
        Specified by:
        inStreamAsync in interface PlatformTargetProxy
        Parameters:
        type - Operation type.
        memPtr - Memory pointer.
        Throws:
        Exception - If case of failure.
      • inStreamOutObjectAsync

        public Object inStreamOutObjectAsync​(int type,
                                             long memPtr)
                                      throws Exception
        Asynchronous operation accepting memory stream and returning PlatformListenableTarget. Supports cancellable async operations.
        Specified by:
        inStreamOutObjectAsync in interface PlatformTargetProxy
        Parameters:
        type - Operation type.
        memPtr - Memory pointer.
        Returns:
        Result.
        Throws:
        Exception - If case of failure.
      • inStreamOutStream

        public void inStreamOutStream​(int type,
                                      long inMemPtr,
                                      long outMemPtr)
                               throws Exception
        Operation accepting one memory stream and returning result to another memory stream.
        Specified by:
        inStreamOutStream in interface PlatformTargetProxy
        Parameters:
        type - Operation type.
        inMemPtr - Input memory pointer.
        outMemPtr - Output memory pointer.
        Throws:
        Exception - In case of failure.
      • inObjectStreamOutObjectStream

        public Object inObjectStreamOutObjectStream​(int type,
                                                    Object arg,
                                                    long inMemPtr,
                                                    long outMemPtr)
                                             throws Exception
        Operation accepting an object and a memory stream and returning result to another memory stream and an object.
        Specified by:
        inObjectStreamOutObjectStream in interface PlatformTargetProxy
        Parameters:
        type - Operation type.
        arg - Argument (optional).
        inMemPtr - Input memory pointer.
        outMemPtr - Output memory pointer.
        Returns:
        Result.
        Throws:
        Exception - In case of failure.