public LinuxServent(jnr.ffi.Runtime runtime) { super(runtime); this.buf = Memory.allocateDirect(runtime, BUFLEN, true); } }
protected BaseIovec(NativePOSIX posix) { this.posix = posix; this.memory = Memory.allocate(posix.getRuntime(), layout.size()); }
public Pointer toNative(WString value, ToNativeContext context) { if (value == null) { return null; } Pointer memory = Memory.allocateDirect(runtime, value.bytes.length + 1, true); memory.put(0, value.bytes, 0, value.bytes.length); return memory; }
protected BaseIovec(NativePOSIX posix) { this.posix = posix; this.memory = Memory.allocate(posix.getRuntime(), layout.size()); }
LinuxNativeProtocolsDB(LinuxLibProto lib) { this.lib = lib; this.runtime = Library.getRuntime(lib); this.buf = Memory.allocateDirect(runtime, BUFLEN); }
protected BaseFileStat(NativePOSIX posix, StructLayout layout) { this.posix = posix; this.memory = Memory.allocate(posix.getRuntime(), layout.size()); }
LinuxServicesDB(LibServices lib) { super(lib); this.lib = (LinuxLibServices) lib; this.runtime = Library.getRuntime(lib); this.buf = Memory.allocateDirect(runtime, BUFLEN); }
protected BaseFileStat(NativePOSIX posix, StructLayout layout) { this.posix = posix; this.memory = Memory.allocate(posix.getRuntime(), layout.size()); }
public Pointer allocatePosixSpawnattr() { return Memory.allocateDirect(getRuntime(), 8); } }
NativeTimes(NativePOSIX posix) { this.memory = Memory.allocate(posix.getRuntime(), layout.size()); }
public Pointer toNative(WString value, ToNativeContext context) { if (value == null) { return null; } Pointer memory = Memory.allocateDirect(runtime, value.bytes.length + 1, true); memory.put(0, value.bytes, 0, value.bytes.length); return memory; }
protected BaseFileStat(NativePOSIX posix, StructLayout layout) { this.posix = posix; this.memory = Memory.allocate(posix.getRuntime(), layout.size()); }
@Override public Pointer allocatePosixSpawnFileActions() { return Memory.allocateDirect(getRuntime(), 8); }
protected BaseIovec(NativePOSIX posix) { this.posix = posix; this.memory = Memory.allocate(posix.getRuntime(), layout.size()); }
@Override public Pointer allocatePosixSpawnattr() { return Memory.allocateDirect(getRuntime(), 8); }
protected BaseFileStat(NativePOSIX posix, StructLayout layout) { this.posix = posix; this.memory = Memory.allocate(posix.getRuntime(), layout.size()); }
public Pointer allocatePosixSpawnattr() { return Memory.allocateDirect(getRuntime(), 60); } }
NativeTimes(NativePOSIX posix) { this.memory = Memory.allocate(posix.getRuntime(), layout.size()); }
@Override public Pointer allocatePosixSpawnFileActions() { return Memory.allocateDirect(getRuntime(), 80); }
NativeTimes(NativePOSIX posix) { this.memory = Memory.allocate(posix.getRuntime(), layout.size()); }