Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jruby.ext.ffi.jffi;
 
 
 public final class DirectPointerParameterStrategy extends PointerParameterStrategy {
        super(true);
    }
    @Override
    public final long address(Object parameter) {
//        System.out.printf("direct pointer strategy returning address=%x\n", ((DirectMemoryIO) ((AbstractMemory) parameter).getMemoryIO()).getAddress());
        return ((DirectMemoryIO) ((AbstractMemoryparameter).getMemoryIO()).getAddress();
    }
    @Override
    public Object object(Object parameter) {
        throw new RuntimeException("no array");
    }
    @Override
    public int offset(Object parameter) {
        throw new RuntimeException("no array");
    }
    @Override
    public int length(Object parameter) {
        throw new RuntimeException("no array");
    }
New to GrepCode? Check out our FAQ X