Tabnine Logo
Os.write
Code IndexAdd Tabnine to your IDE (free)

How to use
write
method
in
libcore.io.Os

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

origin: robovm/robovm

@Override public Selector wakeup() {
  try {
    Libcore.os.write(wakeupOut, new byte[] { 1 }, 0, 1);
  } catch (ErrnoException ignored) {
  }
  return this;
}
origin: robovm/robovm

public int write(FileDescriptor fd, ByteBuffer buffer) throws ErrnoException { return os.write(fd, buffer); }
public int write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoException { return os.write(fd, bytes, byteOffset, byteCount); }
origin: robovm/robovm

public int write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoException { return os.write(fd, bytes, byteOffset, byteCount); }
public int writev(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException { return os.writev(fd, buffers, offsets, byteCounts); }
origin: robovm/robovm

@Override public int write(FileDescriptor fd, ByteBuffer buffer) throws ErrnoException {
  BlockGuard.getThreadPolicy().onWriteToDisk();
  return os.write(fd, buffer);
}
origin: robovm/robovm

@Override public int write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoException {
  BlockGuard.getThreadPolicy().onWriteToDisk();
  return os.write(fd, bytes, byteOffset, byteCount);
}
origin: robovm/robovm

/**
 * java.io always writes every byte it's asked to, or fails with an error. (That is, unlike
 * Unix it never just writes as many bytes as happens to be convenient.)
 */
public static void write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws IOException {
  Arrays.checkOffsetAndCount(bytes.length, byteOffset, byteCount);
  if (byteCount == 0) {
    return;
  }
  try {
    while (byteCount > 0) {
      int bytesWritten = Libcore.os.write(fd, bytes, byteOffset, byteCount);
      byteCount -= bytesWritten;
      byteOffset += bytesWritten;
    }
  } catch (ErrnoException errnoException) {
    throw errnoException.rethrowAsIOException();
  }
}
origin: robovm/robovm

try {
  if (position == -1) {
    bytesWritten = Libcore.os.write(fd, buffer);
  } else {
    bytesWritten = Libcore.os.pwrite(fd, buffer, position);
origin: ibinti/bugvm

@Override public Selector wakeup() {
  try {
    Libcore.os.write(wakeupOut, new byte[] { 1 }, 0, 1);
  } catch (ErrnoException ignored) {
  }
  return this;
}
origin: com.bugvm/bugvm-rt

@Override public Selector wakeup() {
  try {
    Libcore.os.write(wakeupOut, new byte[] { 1 }, 0, 1);
  } catch (ErrnoException ignored) {
  }
  return this;
}
origin: MobiVM/robovm

@Override public Selector wakeup() {
  try {
    Libcore.os.write(wakeupOut, new byte[] { 1 }, 0, 1);
  } catch (ErrnoException ignored) {
  }
  return this;
}
origin: com.mobidevelop.robovm/robovm-rt

@Override public Selector wakeup() {
  try {
    Libcore.os.write(wakeupOut, new byte[] { 1 }, 0, 1);
  } catch (ErrnoException ignored) {
  }
  return this;
}
origin: com.gluonhq/robovm-rt

@Override public Selector wakeup() {
  try {
    Libcore.os.write(wakeupOut, new byte[] { 1 }, 0, 1);
  } catch (ErrnoException ignored) {
  }
  return this;
}
origin: FlexoVM/flexovm

@Override public Selector wakeup() {
  try {
    Libcore.os.write(wakeupOut, new byte[] { 1 }, 0, 1);
  } catch (ErrnoException ignored) {
  }
  return this;
}
origin: MobiVM/robovm

@Override public int write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoException {
  BlockGuard.getThreadPolicy().onWriteToDisk();
  return os.write(fd, bytes, byteOffset, byteCount);
}
origin: MobiVM/robovm

@Override public int write(FileDescriptor fd, ByteBuffer buffer) throws ErrnoException {
  BlockGuard.getThreadPolicy().onWriteToDisk();
  return os.write(fd, buffer);
}
origin: ibinti/bugvm

@Override public int write(FileDescriptor fd, ByteBuffer buffer) throws ErrnoException {
  BlockGuard.getThreadPolicy().onWriteToDisk();
  return os.write(fd, buffer);
}
origin: ibinti/bugvm

@Override public int write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoException {
  BlockGuard.getThreadPolicy().onWriteToDisk();
  return os.write(fd, bytes, byteOffset, byteCount);
}
origin: com.mobidevelop.robovm/robovm-rt

@Override public int write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoException {
  BlockGuard.getThreadPolicy().onWriteToDisk();
  return os.write(fd, bytes, byteOffset, byteCount);
}
origin: com.bugvm/bugvm-rt

@Override public int write(FileDescriptor fd, ByteBuffer buffer) throws ErrnoException {
  BlockGuard.getThreadPolicy().onWriteToDisk();
  return os.write(fd, buffer);
}
origin: com.gluonhq/robovm-rt

@Override public int write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoException {
  BlockGuard.getThreadPolicy().onWriteToDisk();
  return os.write(fd, bytes, byteOffset, byteCount);
}
libcore.ioOswrite

Popular methods of Os

  • accept
  • access
  • bind
  • chmod
  • chown
  • close
  • connect
  • dup
  • dup2
  • environ
  • execv
  • execve
  • execv,
  • execve,
  • fchmod,
  • fchown,
  • fcntlFlock,
  • fcntlLong,
  • fcntlVoid,
  • fdatasync,
  • fstat,
  • fstatvfs

Popular in Java

  • Reading from database using SQL prepared statement
  • getExternalFilesDir (Context)
  • onCreateOptionsMenu (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Menu (java.awt)
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Notification (javax.management)
  • JPanel (javax.swing)
  • From CI to AI: The AI layer in your organization
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