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

How to use
FastShortBuffer
in
jodd.util.buffer

Best Java code snippets using jodd.util.buffer.FastShortBuffer (Showing top 8 results out of 315)

origin: redisson/redisson

/**
 * Appends <code>short</code> array to buffer.
 */
public FastShortBuffer append(short[] array) {
  return append(array, 0, array.length);
}
origin: redisson/redisson

/**
 * Appends single <code>short</code> to buffer.
 */
public FastShortBuffer append(short element) {
  if ((currentBuffer == null) || (offset == currentBuffer.length)) {
    needNewBuffer(size + 1);
  }
  currentBuffer[offset] = element;
  offset++;
  size++;
  return this;
}
origin: redisson/redisson

needNewBuffer(newSize);
origin: redisson/redisson

/**
 * Appends another fast buffer to this one.
 */
public FastShortBuffer append(FastShortBuffer buff) {
  if (buff.size == 0) {
    return this;
  }
  for (int i = 0; i < buff.currentBufferIndex; i++) {
    append(buff.buffers[i]);
  }
  append(buff.currentBuffer, 0, buff.offset);
  return this;
}
origin: fivesmallq/web-data-extractor

/**
 * Appends single <code>short</code> to buffer.
 */
public FastShortBuffer append(short element) {
  if ((currentBuffer == null) || (offset == currentBuffer.length)) {
    needNewBuffer(size + 1);
  }
  currentBuffer[offset] = element;
  offset++;
  size++;
  return this;
}
origin: fivesmallq/web-data-extractor

/**
 * Appends <code>short</code> array to buffer.
 */
public FastShortBuffer append(short[] array) {
  return append(array, 0, array.length);
}
origin: fivesmallq/web-data-extractor

needNewBuffer(newSize);
origin: fivesmallq/web-data-extractor

/**
 * Appends another fast buffer to this one.
 */
public FastShortBuffer append(FastShortBuffer buff) {
  if (buff.size == 0) {
    return this;
  }
  for (int i = 0; i < buff.currentBufferIndex; i++) {
    append(buff.buffers[i]);
  }
  append(buff.currentBuffer, 0, buff.offset);
  return this;
}
jodd.util.bufferFastShortBuffer

Javadoc

Fast, fast short buffer. This buffer implementation does not store all data in single array, but in array of chunks.

Most used methods

  • append
    Appends short array to buffer.
  • needNewBuffer
    Prepares next chunk to match new size. The minimal length of new chunk is minChunkLen.

Popular in Java

  • Updating database using SQL prepared statement
  • setContentView (Activity)
  • putExtra (Intent)
  • startActivity (Activity)
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Top PhpStorm 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