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

How to use
Bits
in
org.glassfish.grizzly.memory

Best Java code snippets using org.glassfish.grizzly.memory.Bits (Showing top 20 results out of 315)

origin: javaee/grizzly

@Override
public char getChar(int index) {
  if (index < 0 || index >= (lim - 1)) {
    throw new IndexOutOfBoundsException();
  }
  return Bits.getChar(heap, offset + index, bigEndian);
}
origin: javaee/grizzly

static char getChar(byte[] bb, int bi, boolean bigEndian) {
  return (bigEndian ? getCharB(bb, bi) : getCharL(bb, bi));
}
origin: org.glassfish.grizzly/grizzly-websockets-server

@Override
public double getDouble(int index) {
  if (index < 0 || index >= (lim - 7)) {
    throw new IndexOutOfBoundsException();
  }
  return Bits.getDouble(heap, offset + index, bigEndian);
}
origin: javaee/grizzly

static double getDouble(byte[] bb, int bi, boolean bigEndian) {
  return (bigEndian ? getDoubleB(bb, bi) : getDoubleL(bb, bi));
}
origin: javaee/grizzly

static float getFloat(byte[] bb, int bi, boolean bigEndian) {
  return (bigEndian ? getFloatB(bb, bi) : getFloatL(bb, bi));
}
origin: org.glassfish.grizzly/grizzly-websockets-server

private void putCharB(int index, char value) {
  activeBuffer.put(toActiveBufferPos(index), Bits.char1(value));
  checkIndex(++index);
  activeBuffer.put(toActiveBufferPos(index), Bits.char0(value));
}
origin: javaee/grizzly

@Override
public float getFloat(int index) {
  if (index < 0 || index >= (lim - 3)) {
    throw new IndexOutOfBoundsException();
  }
  return Bits.getFloat(heap, offset + index, bigEndian);
}
origin: javaee/grizzly

private void putCharB(int index, char value) {
  activeBuffer.put(toActiveBufferPos(index), Bits.char1(value));
  checkIndex(++index);
  activeBuffer.put(toActiveBufferPos(index), Bits.char0(value));
}
origin: javaee/grizzly

static double getDouble(byte[] bb, int bi, boolean bigEndian) {
  return (bigEndian ? getDoubleB(bb, bi) : getDoubleL(bb, bi));
}
origin: javaee/grizzly

static float getFloat(byte[] bb, int bi, boolean bigEndian) {
  return (bigEndian ? getFloatB(bb, bi) : getFloatL(bb, bi));
}
origin: javaee/grizzly

@Override
public float getFloat(int index) {
  if (index < 0 || index >= (lim - 3)) {
    throw new IndexOutOfBoundsException();
  }
  return Bits.getFloat(heap, offset + index, bigEndian);
}
origin: javaee/grizzly

private void putCharB(int index, char value) {
  activeBuffer.put(toActiveBufferPos(index), Bits.char1(value));
  checkIndex(++index);
  activeBuffer.put(toActiveBufferPos(index), Bits.char0(value));
}
origin: javaee/grizzly

static double getDouble(byte[] bb, int bi, boolean bigEndian) {
  return (bigEndian ? getDoubleB(bb, bi) : getDoubleL(bb, bi));
}
origin: javaee/grizzly

static char getChar(byte[] bb, int bi, boolean bigEndian) {
  return (bigEndian ? getCharB(bb, bi) : getCharL(bb, bi));
}
origin: javaee/grizzly

static float getFloat(byte[] bb, int bi, boolean bigEndian) {
  return (bigEndian ? getFloatB(bb, bi) : getFloatL(bb, bi));
}
origin: javaee/grizzly

@Override
public float getFloat(int index) {
  if (index < 0 || index >= (lim - 3)) {
    throw new IndexOutOfBoundsException();
  }
  return Bits.getFloat(heap, offset + index, bigEndian);
}
origin: org.mule.glassfish.grizzly/grizzly-framework

@Override
public char getChar(int index) {
  if (index < 0 || index >= (lim - 1)) {
    throw new IndexOutOfBoundsException();
  }
  return Bits.getChar(heap, offset + index, bigEndian);
}
origin: org.glassfish.grizzly/grizzly-core

@Override
public double getDouble(int index) {
  if (index < 0 || index >= (lim - 7)) {
    throw new IndexOutOfBoundsException();
  }
  return Bits.getDouble(heap, offset + index, bigEndian);
}
origin: javaee/grizzly

private void putCharB(int index, char value) {
  activeBuffer.put(toActiveBufferPos(index), Bits.char1(value));
  checkIndex(++index);
  activeBuffer.put(toActiveBufferPos(index), Bits.char0(value));
}
origin: javaee/grizzly

static double getDouble(byte[] bb, int bi, boolean bigEndian) {
  return (bigEndian ? getDoubleB(bb, bi) : getDoubleL(bb, bi));
}
org.glassfish.grizzly.memoryBits

Javadoc

Modified java.nio.Bits source for Grizzly Purposes.

Most used methods

  • char0
  • char1
  • getChar
  • getCharB
  • getCharL
  • getDouble
  • getDoubleB
  • getDoubleL
  • getFloat
  • getFloatB
  • getFloatL
  • getInt
  • getFloatL,
  • getInt,
  • getIntB,
  • getIntL,
  • getLong,
  • getLongB,
  • getLongL,
  • getShort,
  • getShortB,
  • getShortL

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (Timer)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSharedPreferences (Context)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • Permission (java.security)
    Legacy security code; do not use.
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • JList (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