All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jruby.ext.ffi.FreedMemoryIO Maven / Gradle / Ivy

There is a newer version: 9.4.7.0
Show newest version
package org.jruby.ext.ffi;

import org.jruby.Ruby;

public final class FreedMemoryIO extends InvalidMemoryIO implements AllocatedDirectMemoryIO {

    public FreedMemoryIO(Ruby runtime) {
        super(runtime, "Attempting to access freed memory");
    }

    public boolean isNull() {
        return false;
    }

    public boolean isDirect() {
        return true;
    }

    public void free() {
        throw ex();
    }

    public void setAutoRelease(boolean autorelease) {
        throw ex();
    }

    public long getAddress() {
        throw ex();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy