Tabnine Logo
MutableInt
Code IndexAdd Tabnine to your IDE (free)

How to use
MutableInt
in
libcore.util

Best Java code snippets using libcore.util.MutableInt (Showing top 14 results out of 315)

origin: robovm/robovm

public static int available(FileDescriptor fd) throws IOException {
  try {
    MutableInt available = new MutableInt(0);
    Libcore.os.ioctlInt(fd, FIONREAD, available);
    if (available.value < 0) {
      // If the fd refers to a regular file, the result is the difference between
      // the file size and the file position. This may be negative if the position
      // is past the end of the file. If the fd refers to a special file masquerading
      // as a regular file, the result may be negative because the special file
      // may appear to have zero size and yet a previous read call may have
      // read some amount of data and caused the file position to be advanced.
      available.value = 0;
    }
    return available.value;
  } catch (ErrnoException errnoException) {
    if (errnoException.errno == ENOTTY) {
      // The fd is unwilling to opine about its read buffer.
      return 0;
    }
    throw errnoException.rethrowAsIOException();
  }
}
origin: robovm/robovm

MutableInt status = new MutableInt(-1);
while (true) {
  try {
origin: com.gluonhq/robovm-rt

public static int available(FileDescriptor fd) throws IOException {
  try {
    MutableInt available = new MutableInt(0);
    Libcore.os.ioctlInt(fd, FIONREAD, available);
    if (available.value < 0) {
      // If the fd refers to a regular file, the result is the difference between
      // the file size and the file position. This may be negative if the position
      // is past the end of the file. If the fd refers to a special file masquerading
      // as a regular file, the result may be negative because the special file
      // may appear to have zero size and yet a previous read call may have
      // read some amount of data and caused the file position to be advanced.
      available.value = 0;
    }
    return available.value;
  } catch (ErrnoException errnoException) {
    if (errnoException.errno == ENOTTY) {
      // The fd is unwilling to opine about its read buffer.
      return 0;
    }
    throw errnoException.rethrowAsIOException();
  }
}
origin: MobiVM/robovm

public static int available(FileDescriptor fd) throws IOException {
  try {
    MutableInt available = new MutableInt(0);
    Libcore.os.ioctlInt(fd, FIONREAD, available);
    if (available.value < 0) {
      // If the fd refers to a regular file, the result is the difference between
      // the file size and the file position. This may be negative if the position
      // is past the end of the file. If the fd refers to a special file masquerading
      // as a regular file, the result may be negative because the special file
      // may appear to have zero size and yet a previous read call may have
      // read some amount of data and caused the file position to be advanced.
      available.value = 0;
    }
    return available.value;
  } catch (ErrnoException errnoException) {
    if (errnoException.errno == ENOTTY) {
      // The fd is unwilling to opine about its read buffer.
      return 0;
    }
    throw errnoException.rethrowAsIOException();
  }
}
origin: ibinti/bugvm

public static int available(FileDescriptor fd) throws IOException {
  try {
    MutableInt available = new MutableInt(0);
    Libcore.os.ioctlInt(fd, FIONREAD, available);
    if (available.value < 0) {
      // If the fd refers to a regular file, the result is the difference between
      // the file size and the file position. This may be negative if the position
      // is past the end of the file. If the fd refers to a special file masquerading
      // as a regular file, the result may be negative because the special file
      // may appear to have zero size and yet a previous read call may have
      // read some amount of data and caused the file position to be advanced.
      available.value = 0;
    }
    return available.value;
  } catch (ErrnoException errnoException) {
    if (errnoException.errno == ENOTTY) {
      // The fd is unwilling to opine about its read buffer.
      return 0;
    }
    throw errnoException.rethrowAsIOException();
  }
}
origin: com.bugvm/bugvm-rt

public static int available(FileDescriptor fd) throws IOException {
  try {
    MutableInt available = new MutableInt(0);
    Libcore.os.ioctlInt(fd, FIONREAD, available);
    if (available.value < 0) {
      // If the fd refers to a regular file, the result is the difference between
      // the file size and the file position. This may be negative if the position
      // is past the end of the file. If the fd refers to a special file masquerading
      // as a regular file, the result may be negative because the special file
      // may appear to have zero size and yet a previous read call may have
      // read some amount of data and caused the file position to be advanced.
      available.value = 0;
    }
    return available.value;
  } catch (ErrnoException errnoException) {
    if (errnoException.errno == ENOTTY) {
      // The fd is unwilling to opine about its read buffer.
      return 0;
    }
    throw errnoException.rethrowAsIOException();
  }
}
origin: com.mobidevelop.robovm/robovm-rt

public static int available(FileDescriptor fd) throws IOException {
  try {
    MutableInt available = new MutableInt(0);
    Libcore.os.ioctlInt(fd, FIONREAD, available);
    if (available.value < 0) {
      // If the fd refers to a regular file, the result is the difference between
      // the file size and the file position. This may be negative if the position
      // is past the end of the file. If the fd refers to a special file masquerading
      // as a regular file, the result may be negative because the special file
      // may appear to have zero size and yet a previous read call may have
      // read some amount of data and caused the file position to be advanced.
      available.value = 0;
    }
    return available.value;
  } catch (ErrnoException errnoException) {
    if (errnoException.errno == ENOTTY) {
      // The fd is unwilling to opine about its read buffer.
      return 0;
    }
    throw errnoException.rethrowAsIOException();
  }
}
origin: FlexoVM/flexovm

public static int available(FileDescriptor fd) throws IOException {
  try {
    MutableInt available = new MutableInt(0);
    Libcore.os.ioctlInt(fd, FIONREAD, available);
    if (available.value < 0) {
      // If the fd refers to a regular file, the result is the difference between
      // the file size and the file position. This may be negative if the position
      // is past the end of the file. If the fd refers to a special file masquerading
      // as a regular file, the result may be negative because the special file
      // may appear to have zero size and yet a previous read call may have
      // read some amount of data and caused the file position to be advanced.
      available.value = 0;
    }
    return available.value;
  } catch (ErrnoException errnoException) {
    if (errnoException.errno == ENOTTY) {
      // The fd is unwilling to opine about its read buffer.
      return 0;
    }
    throw errnoException.rethrowAsIOException();
  }
}
origin: MobiVM/robovm

MutableInt status = new MutableInt(-1);
while (true) {
  try {
origin: com.bugvm/bugvm-rt

MutableInt status = new MutableInt(-1);
while (true) {
  try {
origin: com.gluonhq/robovm-rt

MutableInt status = new MutableInt(-1);
while (true) {
  try {
origin: ibinti/bugvm

MutableInt status = new MutableInt(-1);
while (true) {
  try {
origin: com.mobidevelop.robovm/robovm-rt

MutableInt status = new MutableInt(-1);
while (true) {
  try {
origin: FlexoVM/flexovm

MutableInt status = new MutableInt(-1);
while (true) {
  try {
libcore.utilMutableInt

Most used methods

  • <init>

Popular in Java

  • Making http post requests using okhttp
  • putExtra (Intent)
  • findViewById (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Top Sublime Text plugins
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