static Protocol protocolFromNative(UnixProtoent p) { if (p == null) { return null; } List<String> emptyAliases = Collections.emptyList(); Pointer ptr; final Collection<String> aliases = ((ptr = p.aliases.get()) != null) ? StringUtil.getNullTerminatedStringArray(ptr) : emptyAliases; return new Protocol(p.name.get(), (short) p.proto.get(), aliases); }
static Service serviceFromNative(UnixServent s) { if (s == null) { return null; } List<String> emptyAliases = Collections.emptyList(); Pointer ptr; final Collection<String> aliases = ((ptr = s.aliases.get()) != null) ? StringUtil.getNullTerminatedStringArray(ptr) : emptyAliases; return new Service(s.name.get(), ntohs(s.port.get()), s.proto.get(), aliases); }
AbstractFuseFS.this.fusePointer = libFuse.fuse_get_context().fuse.get(); if (isImplemented("init")) { return fuse.init(conn);
AbstractFuseFS.this.fusePointer = libFuse.fuse_get_context().fuse.get(); if (isImplemented("init")) { return fuse.init(conn);
flatbuf = tmp.buf; res = write(path, flatbuf.mem.get(), flatbuf.size.get(), off, fi); if (mem != 0) { MemoryIO.getInstance().freeMemory(adr);
flatbuf = tmp.buf; res = write(path, flatbuf.mem.get(), flatbuf.size.get(), off, fi); if (mem != 0) { MemoryIO.getInstance().freeMemory(adr);
/** * Return information about this environment. * * @return an immutable information object. */ public EnvInfo info() { if (closed) { throw new AlreadyClosedException(); } final MDB_envinfo info = new MDB_envinfo(RUNTIME); checkRc(LIB.mdb_env_info(ptr, info)); final long mapAddress; if (info.f0_me_mapaddr.get() == null) { mapAddress = 0; } else { mapAddress = info.f0_me_mapaddr.get().address(); } return new EnvInfo( mapAddress, info.f1_me_mapsize.longValue(), info.f2_me_last_pgno.longValue(), info.f3_me_last_txnid.longValue(), info.f4_me_maxreaders.intValue(), info.f5_me_numreaders.intValue()); }
/** * Return information about this environment. * * @return an immutable information object. */ public EnvInfo info() { if (closed) { throw new AlreadyClosedException(); } final MDB_envinfo info = new MDB_envinfo(RUNTIME); checkRc(LIB.mdb_env_info(ptr, info)); final long mapAddress; if (info.f0_me_mapaddr.get() == null) { mapAddress = 0; } else { mapAddress = info.f0_me_mapaddr.get().address(); } return new EnvInfo( mapAddress, info.f1_me_mapsize.longValue(), info.f2_me_last_pgno.longValue(), info.f3_me_last_txnid.longValue(), info.f4_me_maxreaders.intValue(), info.f5_me_numreaders.intValue()); }
public HANDLE getProcess() { return new HANDLE(hProcess.get()); }
public HANDLE getThread() { return new HANDLE(hThread.get()); }
public HANDLE getProcess() { return new HANDLE(hProcess.get()); }
public HANDLE getProcess() { return new HANDLE(hProcess.get()); }
public HANDLE getThread() { return new HANDLE(hThread.get()); }
public HANDLE getThread() { return new HANDLE(hThread.get()); }
public HANDLE getProcess() { return new HANDLE(hProcess.get()); }
public HANDLE getThread() { return new HANDLE(hThread.get()); }
/** * Returns a string representation of this <code>Pointer</code>. * * @return a string representation of this <code>Pointer</code>. */ @Override public final java.lang.String toString() { return get().toString(); } }
/** * Returns a string representation of this <code>Pointer</code>. * * @return a string representation of this <code>Pointer</code>. */ @Override public final java.lang.String toString() { return get().toString(); } }
/** * Returns a string representation of this <code>Pointer</code>. * * @return a string representation of this <code>Pointer</code>. */ @Override public final java.lang.String toString() { return get().toString(); } }