Tabnine Logo
CompositeBuffer.bulk
Code IndexAdd Tabnine to your IDE (free)

How to use
bulk
method
in
org.glassfish.grizzly.memory.CompositeBuffer

Best Java code snippets using org.glassfish.grizzly.memory.CompositeBuffer.bulk (Showing top 13 results out of 315)

origin: javaee/grizzly

final int findPos = ((CompositeBuffer) buffer).bulk(operation,
    bufferPosition, bufferPosition + bytesToProcess);
origin: javaee/grizzly

final int findPos = ((CompositeBuffer) buffer).bulk(operation,
    bufferPosition, bufferPosition + bytesToProcess);
origin: javaee/grizzly

final int findPos = ((CompositeBuffer) buffer).bulk(operation,
    bufferPosition, bufferPosition + bytesToProcess);
origin: javaee/grizzly

final int findPos = ((CompositeBuffer) buffer).bulk(operation,
    bufferPosition, bufferPosition + bytesToProcess);
origin: javaee/grizzly

final int findPos = ((CompositeBuffer) buffer).bulk(operation,
    bufferPosition, bufferPosition + bytesToProcess);
origin: org.glassfish.grizzly/grizzly-http-server-core

final int findPos = ((CompositeBuffer) buffer).bulk(operation,
    bufferPosition, bufferPosition + bytesToProcess);
origin: org.glassfish.grizzly/grizzly-websockets-server

final int findPos = ((CompositeBuffer) buffer).bulk(operation,
    bufferPosition, bufferPosition + bytesToProcess);
origin: javaee/grizzly

final int findPos = ((CompositeBuffer) buffer).bulk(operation,
    bufferPosition, bufferPosition + bytesToProcess);
origin: org.glassfish.grizzly/grizzly-core

final int findPos = ((CompositeBuffer) buffer).bulk(operation,
    bufferPosition, bufferPosition + bytesToProcess);
origin: javaee/grizzly

final int findPos = ((CompositeBuffer) buffer).bulk(operation,
    bufferPosition, bufferPosition + bytesToProcess);
origin: javaee/grizzly

final int findPos = ((CompositeBuffer) buffer).bulk(operation,
    bufferPosition, bufferPosition + bytesToProcess);
origin: org.mule.glassfish.grizzly/grizzly-framework

final int findPos = ((CompositeBuffer) buffer).bulk(operation,
    bufferPosition, bufferPosition + bytesToProcess);
origin: javaee/grizzly

@Test
public void testBulk() {
  final Charset ascii = Charset.forName("ASCII");
  
  final CompositeBuffer composite = CompositeBuffer.newBuffer(
      mm, Buffers.wrap(mm, "hello", ascii),
      Buffers.wrap(mm, " world", ascii));
  composite.bulk(new CompositeBuffer.BulkOperation() {
    @Override
    public boolean processByte(byte value, final Setter setter) {
      setter.set((byte) Character.toUpperCase(value));
      return false;
    }
  });
  
  assertEquals("HELLO WORLD", composite.toStringContent(ascii));
}

org.glassfish.grizzly.memoryCompositeBufferbulk

Javadoc

Iterates over Buffer bytes from #position() to #limit()and lets BulkOperation examine/change the buffer content;

Popular methods of CompositeBuffer

  • append
  • allowInternalBuffersDispose
  • newBuffer
  • remaining
  • allowBufferDispose
  • dispose
  • shrink
  • get
  • position
  • disposeOrder
    Sets the order in which internal Buffers will be disposed.
  • limit
  • replace
    Replace one internal Buffer with another one.
  • limit,
  • replace,
  • toByteBufferArray,
  • clear,
  • duplicate,
  • order,
  • prepend,
  • removeAll,
  • toBufferArray

Popular in Java

  • Reading from database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSystemService (Context)
  • startActivity (Activity)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Join (org.hibernate.mapping)
  • Top plugins for WebStorm
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