Class BufferParameterStrategy

    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.kenai.jffi.ObjectParameterStrategy

        com.kenai.jffi.ObjectParameterStrategy.StrategyType
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private BufferParameterStrategy​(com.kenai.jffi.ObjectParameterStrategy.StrategyType type, com.kenai.jffi.ObjectParameterType.ComponentType componentType)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long address​(java.lang.Object o)  
      long address​(java.nio.Buffer buffer)  
      (package private) static int calculateShift​(com.kenai.jffi.ObjectParameterType.ComponentType componentType)  
      (package private) static BufferParameterStrategy direct​(com.kenai.jffi.ObjectParameterType.ComponentType componentType)  
      (package private) static BufferParameterStrategy heap​(com.kenai.jffi.ObjectParameterType.ComponentType componentType)  
      int length​(java.lang.Object o)  
      java.lang.Object object​(java.lang.Object o)  
      int offset​(java.lang.Object o)  
      • Methods inherited from class com.kenai.jffi.ObjectParameterStrategy

        isDirect
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • shift

        private final int shift
      • DIRECT_BUFFER_PARAMETER_STRATEGIES

        private static final BufferParameterStrategy[] DIRECT_BUFFER_PARAMETER_STRATEGIES
      • HEAP_BUFFER_PARAMETER_STRATEGIES

        private static final BufferParameterStrategy[] HEAP_BUFFER_PARAMETER_STRATEGIES
    • Constructor Detail

      • BufferParameterStrategy

        private BufferParameterStrategy​(com.kenai.jffi.ObjectParameterStrategy.StrategyType type,
                                        com.kenai.jffi.ObjectParameterType.ComponentType componentType)
    • Method Detail

      • address

        public long address​(java.nio.Buffer buffer)
      • address

        public long address​(java.lang.Object o)
        Specified by:
        address in class com.kenai.jffi.ObjectParameterStrategy
      • object

        public java.lang.Object object​(java.lang.Object o)
        Specified by:
        object in class com.kenai.jffi.ObjectParameterStrategy
      • offset

        public int offset​(java.lang.Object o)
        Specified by:
        offset in class com.kenai.jffi.ObjectParameterStrategy
      • length

        public int length​(java.lang.Object o)
        Specified by:
        length in class com.kenai.jffi.ObjectParameterStrategy
      • calculateShift

        static int calculateShift​(com.kenai.jffi.ObjectParameterType.ComponentType componentType)
      • direct

        static BufferParameterStrategy direct​(com.kenai.jffi.ObjectParameterType.ComponentType componentType)