DirectByteBuffer.position
Code IndexAdd Codota to your IDE (free)

Best code snippets using java.nio.DirectByteBuffer.position(Showing top 15 results out of 315)

origin: libgdx/libgdx

@Override
public FloatBuffer slice () {
  byteBuffer.limit(limit << 2);
  byteBuffer.position(position << 2);
  FloatBuffer result = new DirectReadOnlyFloatBufferAdapter((DirectByteBuffer)byteBuffer.slice());
  byteBuffer.clear();
  return result;
}
origin: libgdx/libgdx

static DirectReadOnlyByteBuffer copy (DirectByteBuffer other, int markOfOther) {
  DirectReadOnlyByteBuffer buf = new DirectReadOnlyByteBuffer(other.byteArray.buffer(), other.capacity(),
    other.byteArray.byteOffset());
  buf.limit = other.limit();
  buf.position = other.position();
  buf.mark = markOfOther;
  buf.order(other.order());
  return buf;
}
origin: libgdx/libgdx

@Override
public ShortBuffer slice () {
  byteBuffer.limit(limit << 1);
  byteBuffer.position(position << 1);
  ShortBuffer result = new DirectReadOnlyShortBufferAdapter((DirectByteBuffer)byteBuffer.slice());
  byteBuffer.clear();
  return result;
}
origin: libgdx/libgdx

static DirectReadWriteByteBuffer copy (DirectByteBuffer other, int markOfOther) {
  DirectReadWriteByteBuffer buf = new DirectReadWriteByteBuffer(other.byteArray.buffer(), other.capacity(),
    other.byteArray.byteOffset());
  buf.limit = other.limit();
  buf.position = other.position();
  buf.mark = markOfOther;
  buf.order(other.order());
  return buf;
}
origin: libgdx/libgdx

@Override
public IntBuffer slice () {
  byteBuffer.limit(limit << 2);
  byteBuffer.position(position << 2);
  IntBuffer result = new DirectReadOnlyIntBufferAdapter((DirectByteBuffer)byteBuffer.slice());
  byteBuffer.clear();
  return result;
}
origin: robovm/robovm

private static DirectByteBuffer copy(DirectByteBuffer other, int markOfOther, boolean isReadOnly) {
 DirectByteBuffer buf = new DirectByteBuffer(other.block, other.capacity(), other.offset, isReadOnly, other.mapMode);
 buf.limit = other.limit;
 buf.position = other.position();
 buf.mark = markOfOther;
 return buf;
}
origin: dragome/dragome-sdk

static DirectReadOnlyByteBuffer copy (DirectByteBuffer other, int markOfOther) {
  DirectReadOnlyByteBuffer buf = new DirectReadOnlyByteBuffer(other.byteArray.getBuffer(), other.capacity(),
    other.byteArray.getByteOffset());
  buf.limit = other.limit();
  buf.position = other.position();
  buf.mark = markOfOther;
  buf.order(other.order());
  return buf;
}
origin: com.mobidevelop.robovm/robovm-rt

private static DirectByteBuffer copy(DirectByteBuffer other, int markOfOther, boolean isReadOnly) {
 DirectByteBuffer buf = new DirectByteBuffer(other.block, other.capacity(), other.offset, isReadOnly, other.mapMode);
 buf.limit = other.limit;
 buf.position = other.position();
 buf.mark = markOfOther;
 return buf;
}
origin: thothbot/parallax

static DirectReadWriteByteBuffer copy (DirectByteBuffer other, int markOfOther) {
  DirectReadWriteByteBuffer buf = new DirectReadWriteByteBuffer(other.byteArray.buffer(), other.capacity(),
    other.byteArray.byteOffset());
  buf.limit = other.limit();
  buf.position = other.position();
  buf.mark = markOfOther;
  buf.order(other.order());
  return buf;
}
origin: thothbot/parallax

@Override
public IntBuffer slice () {
  byteBuffer.limit(limit << 2);
  byteBuffer.position(position << 2);
  IntBuffer result = new DirectReadOnlyIntBufferAdapter((DirectByteBuffer)byteBuffer.slice());
  byteBuffer.clear();
  return result;
}
origin: thothbot/parallax

@Override
public FloatBuffer slice () {
  byteBuffer.limit(limit << 2);
  byteBuffer.position(position << 2);
  FloatBuffer result = new DirectReadOnlyFloatBufferAdapter((DirectByteBuffer)byteBuffer.slice());
  byteBuffer.clear();
  return result;
}
origin: dragome/dragome-sdk

@Override
public ShortBuffer slice () {
  byteBuffer.limit(limit << 1);
  byteBuffer.position(position << 1);
  ShortBuffer result = new DirectReadOnlyShortBufferAdapter((DirectByteBuffer)byteBuffer.slice());
  byteBuffer.clear();
  return result;
}
origin: dragome/dragome-sdk

@Override
public FloatBuffer slice () {
  byteBuffer.limit(limit << 2);
  byteBuffer.position(position << 2);
  FloatBuffer result = new DirectReadOnlyFloatBufferAdapter((DirectByteBuffer)byteBuffer.slice());
  byteBuffer.clear();
  return result;
}
origin: MobiVM/robovm

private static DirectByteBuffer copy(DirectByteBuffer other, int markOfOther, boolean isReadOnly) {
 DirectByteBuffer buf = new DirectByteBuffer(other.block, other.capacity(), other.offset, isReadOnly, other.mapMode);
 buf.limit = other.limit;
 buf.position = other.position();
 buf.mark = markOfOther;
 return buf;
}
origin: com.bugvm/bugvm-rt

private static DirectByteBuffer copy(DirectByteBuffer other, int markOfOther, boolean isReadOnly) {
 DirectByteBuffer buf = new DirectByteBuffer(other.block, other.capacity(), other.offset, isReadOnly, other.mapMode);
 buf.limit = other.limit;
 buf.position = other.position();
 buf.mark = markOfOther;
 return buf;
}
java.nioDirectByteBufferposition

Popular methods of DirectByteBuffer

  • capacity
  • get
  • remaining
  • <init>
  • checkGetBounds
  • checkIndex
  • checkPutBounds
  • clear
  • copy
  • duplicate
  • free
  • getInt
  • free,
  • getInt,
  • getLong,
  • limit,
  • loadInt,
  • loadLong,
  • loadShort,
  • order,
  • protectedArray

Popular classes and methods

  • compareTo (BigDecimal)
    Compares this BigDecimal with val. Returns one of the three values 1, 0, or -1. The method behaves a
  • getSupportFragmentManager (FragmentActivity)
  • getOriginalFilename (MultipartFile)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • DateFormat (java.text)
    DateFormat is an abstract class for date/time formatting subclasses which formats and parses dates
  • BitSet (java.util)
    This implementation uses bit groups of size 32 to keep track of when bits are set to true or false.
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ

For IntelliJ IDEA and
Android Studio

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)