Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 package org.jruby.ext.ffi;
 
 import org.jruby.Ruby;
An instance of Factory that is used when no FFI implementation can be found.
 
public class NoImplFactory extends Factory {
    private final String msg;
    public NoImplFactory(String msg) {
        this. = new StringBuilder("FFI not available: ").append(msg).toString();
    }
    @Override
    public void init(Ruby runtimeRubyModule ffi) {
        throw runtime.newNotImplementedError();
    }
    @Override
    public AllocatedDirectMemoryIO allocateDirectMemory(Ruby runtimeint sizeboolean clear) {
        throw runtime.newNotImplementedError();
    }
    @Override
    public AllocatedDirectMemoryIO allocateDirectMemory(Ruby runtimeint sizeint alignboolean clear) {
        throw runtime.newNotImplementedError();
    }
    @Override
    public DirectMemoryIO allocateTransientDirectMemory(Ruby runtimeint sizeint alignboolean clear) {
        throw runtime.newNotImplementedError();
    }
    @Override
    public DirectMemoryIO wrapDirectMemory(Ruby runtimelong address) {
        throw runtime.newNotImplementedError();
    }
    @Override
        throw new UnsupportedOperationException();
    }
    @Override
    public AbstractInvoker newFunction(Ruby runtimePointer addressCallbackInfo cbInfo) {
        throw new UnsupportedOperationException();
    }
    @Override
    public int sizeOf(NativeType type) {
        throw new UnsupportedOperationException();
    }
    @Override
    public int alignmentOf(NativeType type) {
        throw new UnsupportedOperationException();
    }
New to GrepCode? Check out our FAQ X