Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jruby.ext.ffi.jffi;
 
 
 public final class DirectStructParameterStrategy extends PointerParameterStrategy {
    public DirectStructParameterStrategy() {
        super(true);
    }
    @Override
    public long address(Object parameter) {
        return ((DirectMemoryIO) ((Structparameter).getMemory().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