congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Posix
Code IndexAdd Tabnine to your IDE (free)

How to use
Posix
in
libcore.io

Best Java code snippets using libcore.io.Posix (Showing top 20 results out of 315)

origin: robovm/robovm

public int pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException {
  // This indirection isn't strictly necessary, but ensures that our public interface is type safe.
  return preadBytes(fd, bytes, byteOffset, byteCount, offset);
}
private native int preadBytes(FileDescriptor fd, Object buffer, int bufferOffset, int byteCount, long offset) throws ErrnoException;
origin: robovm/robovm

public int pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException {
  // This indirection isn't strictly necessary, but ensures that our public interface is type safe.
  return pwriteBytes(fd, bytes, byteOffset, byteCount, offset);
}
private native int pwriteBytes(FileDescriptor fd, Object buffer, int bufferOffset, int byteCount, long offset) throws ErrnoException;
origin: robovm/robovm

public int read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoException {
  // This indirection isn't strictly necessary, but ensures that our public interface is type safe.
  return readBytes(fd, bytes, byteOffset, byteCount);
}
private native int readBytes(FileDescriptor fd, Object buffer, int offset, int byteCount) throws ErrnoException;
origin: robovm/robovm

public int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException {
  // This indirection isn't strictly necessary, but ensures that our public interface is type safe.
  return sendtoBytes(fd, bytes, byteOffset, byteCount, flags, inetAddress, port);
}
private native int sendtoBytes(FileDescriptor fd, Object buffer, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException;
origin: robovm/robovm

public int write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoException {
  // This indirection isn't strictly necessary, but ensures that our public interface is type safe.
  return writeBytes(fd, bytes, byteOffset, byteCount);
}
private native int writeBytes(FileDescriptor fd, Object buffer, int offset, int byteCount) throws ErrnoException;
origin: robovm/robovm

public int recvfrom(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) throws ErrnoException, SocketException {
  // This indirection isn't strictly necessary, but ensures that our public interface is type safe.
  return recvfromBytes(fd, bytes, byteOffset, byteCount, flags, srcAddress);
}
private native int recvfromBytes(FileDescriptor fd, Object buffer, int byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) throws ErrnoException, SocketException;
origin: robovm/robovm

public int umask(int mask) {
  if ((mask & 0777) != mask) {
    throw new IllegalArgumentException("Invalid umask: " + mask);
  }
  return umaskImpl(mask);
}
private native int umaskImpl(int mask);
origin: robovm/robovm

public int sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException {
  if (buffer.isDirect()) {
    return sendtoBytes(fd, buffer, buffer.position(), buffer.remaining(), flags, inetAddress, port);
  } else {
    return sendtoBytes(fd, NioUtils.unsafeArray(buffer), NioUtils.unsafeArrayOffset(buffer) + buffer.position(), buffer.remaining(), flags, inetAddress, port);
  }
}
public int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException {
origin: robovm/robovm

public int write(FileDescriptor fd, ByteBuffer buffer) throws ErrnoException {
  if (buffer.isDirect()) {
    return writeBytes(fd, buffer, buffer.position(), buffer.remaining());
  } else {
    return writeBytes(fd, NioUtils.unsafeArray(buffer), NioUtils.unsafeArrayOffset(buffer) + buffer.position(), buffer.remaining());
  }
}
public int write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoException {
origin: robovm/robovm

public int recvfrom(FileDescriptor fd, ByteBuffer buffer, int flags, InetSocketAddress srcAddress) throws ErrnoException, SocketException {
  if (buffer.isDirect()) {
    return recvfromBytes(fd, buffer, buffer.position(), buffer.remaining(), flags, srcAddress);
  } else {
    return recvfromBytes(fd, NioUtils.unsafeArray(buffer), NioUtils.unsafeArrayOffset(buffer) + buffer.position(), buffer.remaining(), flags, srcAddress);
  }
}
public int recvfrom(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) throws ErrnoException, SocketException {
origin: MobiVM/robovm

public int umask(int mask) {
  if ((mask & 0777) != mask) {
    throw new IllegalArgumentException("Invalid umask: " + mask);
  }
  return umaskImpl(mask);
}
private native int umaskImpl(int mask);
origin: robovm/robovm

public int pread(FileDescriptor fd, ByteBuffer buffer, long offset) throws ErrnoException {
  if (buffer.isDirect()) {
    return preadBytes(fd, buffer, buffer.position(), buffer.remaining(), offset);
  } else {
    return preadBytes(fd, NioUtils.unsafeArray(buffer), NioUtils.unsafeArrayOffset(buffer) + buffer.position(), buffer.remaining(), offset);
  }
}
public int pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException {
origin: ibinti/bugvm

public int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException {
  // This indirection isn't strictly necessary, but ensures that our public interface is type safe.
  return sendtoBytes(fd, bytes, byteOffset, byteCount, flags, inetAddress, port);
}
private native int sendtoBytes(FileDescriptor fd, Object buffer, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException;
origin: com.mobidevelop.robovm/robovm-rt

public int write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoException {
  // This indirection isn't strictly necessary, but ensures that our public interface is type safe.
  return writeBytes(fd, bytes, byteOffset, byteCount);
}
private native int writeBytes(FileDescriptor fd, Object buffer, int offset, int byteCount) throws ErrnoException;
origin: robovm/robovm

public int pwrite(FileDescriptor fd, ByteBuffer buffer, long offset) throws ErrnoException {
  if (buffer.isDirect()) {
    return pwriteBytes(fd, buffer, buffer.position(), buffer.remaining(), offset);
  } else {
    return pwriteBytes(fd, NioUtils.unsafeArray(buffer), NioUtils.unsafeArrayOffset(buffer) + buffer.position(), buffer.remaining(), offset);
  }
}
public int pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException {
origin: ibinti/bugvm

public int recvfrom(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) throws ErrnoException, SocketException {
  // This indirection isn't strictly necessary, but ensures that our public interface is type safe.
  return recvfromBytes(fd, bytes, byteOffset, byteCount, flags, srcAddress);
}
private native int recvfromBytes(FileDescriptor fd, Object buffer, int byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) throws ErrnoException, SocketException;
origin: robovm/robovm

public int read(FileDescriptor fd, ByteBuffer buffer) throws ErrnoException {
  if (buffer.isDirect()) {
    return readBytes(fd, buffer, buffer.position(), buffer.remaining());
  } else {
    return readBytes(fd, NioUtils.unsafeArray(buffer), NioUtils.unsafeArrayOffset(buffer) + buffer.position(), buffer.remaining());
  }
}
public int read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoException {
origin: FlexoVM/flexovm

public int umask(int mask) {
  if ((mask & 0777) != mask) {
    throw new IllegalArgumentException("Invalid umask: " + mask);
  }
  return umaskImpl(mask);
}
private native int umaskImpl(int mask);
origin: ibinti/bugvm

public int pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException {
  // This indirection isn't strictly necessary, but ensures that our public interface is type safe.
  return preadBytes(fd, bytes, byteOffset, byteCount, offset);
}
private native int preadBytes(FileDescriptor fd, Object buffer, int bufferOffset, int byteCount, long offset) throws ErrnoException;
origin: com.gluonhq/robovm-rt

public int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException {
  // This indirection isn't strictly necessary, but ensures that our public interface is type safe.
  return sendtoBytes(fd, bytes, byteOffset, byteCount, flags, inetAddress, port);
}
private native int sendtoBytes(FileDescriptor fd, Object buffer, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException;
libcore.ioPosix

Most used methods

  • preadBytes
  • pwriteBytes
  • readBytes
  • recvfromBytes
  • sendtoBytes
  • umaskImpl
  • writeBytes

Popular in Java

  • Reactive rest calls using spring rest template
  • findViewById (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • putExtra (Intent)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • JLabel (javax.swing)
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now