Tabnine Logo
ByteBuf.copy
Code IndexAdd Tabnine to your IDE (free)

How to use
copy
method
in
io.netty.buffer.ByteBuf

Best Java code snippets using io.netty.buffer.ByteBuf.copy (Showing top 20 results out of 846)

origin: netty/netty

@Override
public ByteBuf copy() {
  return buf.copy();
}
origin: netty/netty

@Override
public ByteBuf copy(int index, int length) {
  return buf.copy(index, length);
}
origin: netty/netty

private static ByteBuf extractFrame(ByteBuf buffer, int index, int length) {
  return buffer.copy(index, length);
}
origin: redisson/redisson

@Override
public ByteBuf copy() {
  return buf.copy();
}
origin: redisson/redisson

@Override
public ByteBuf copy(int index, int length) {
  return buf.copy(index, length);
}
origin: apache/incubator-dubbo

@Override
public ChannelBuffer copy(int index, int length) {
  return new NettyBackedChannelBuffer(buffer.copy(index, length));
}
origin: apache/incubator-dubbo

@Override
public ChannelBuffer copy() {
  return new NettyBackedChannelBuffer(buffer.copy());
}
origin: netty/netty

@Override
public ByteBuf copy(int index, int length) {
  checkIndex(index, length);
  return buffer.copy(index, length);
}
origin: netty/netty

/**
 * {@inheritDoc}
 * <p>
 * This method calls {@code replace(content().copy())} by default.
 */
@Override
public ByteBufHolder copy() {
  return replace(data.copy());
}
origin: netty/netty

@Override
public ByteBuf copy(int index, int length) {
  return unwrap().copy(index, length);
}
origin: netty/netty

@Override
public ByteBuf copy() {
  return buf.copy().order(order);
}
origin: netty/netty

@Override
public ByteBuf copy(int index, int length) {
  return buf.copy(index, length).order(order);
}
origin: netty/netty

@Override
public ByteBuf copy(int index, int length) {
  return unwrap().copy(index, length);
}
origin: redisson/redisson

/**
 * {@inheritDoc}
 * <p>
 * This method calls {@code replace(content().copy())} by default.
 */
@Override
public ByteBufHolder copy() {
  return replace(data.copy());
}
origin: redisson/redisson

@Override
public ByteBuf copy(int index, int length) {
  checkIndex(index, length);
  return buffer.copy(index, length);
}
origin: redisson/redisson

@Override
public PemX509Certificate copy() {
  return replace(content.copy());
}
origin: netty/netty

@Override
public DatagramPacket copy() {
  return replace(content().copy());
}
origin: redisson/redisson

@Override
public DatagramPacket copy() {
  return replace(content().copy());
}
origin: netty/netty

@Override
public ByteBuf copy(int index, int length) {
  checkIndex0(index, length);
  return unwrap().copy(idx(index), length);
}
origin: redisson/redisson

@Override
public ByteBuf copy(int index, int length) {
  checkIndex0(index, length);
  return unwrap().copy(idx(index), length);
}
io.netty.bufferByteBufcopy

Javadoc

Returns a copy of this buffer's readable bytes. Modifying the content of the returned buffer or this buffer does not affect each other at all. This method is identical to buf.copy(buf.readerIndex(), buf.readableBytes()). This method does not modify readerIndex or writerIndex of this buffer.

Popular methods of ByteBuf

  • readableBytes
    Returns the number of readable bytes which is equal to (this.writerIndex - this.readerIndex).
  • writeBytes
    Transfers the specified source array's data to this buffer starting at the current writerIndex and i
  • readBytes
    Transfers this buffer's data to the specified destination starting at the current readerIndex and in
  • release
  • readerIndex
  • writeByte
    Sets the specified byte at the current writerIndexand increases the writerIndex by 1 in this buffer.
  • readByte
    Gets a byte at the current readerIndex and increases the readerIndex by 1 in this buffer.
  • writeInt
    Sets the specified 32-bit integer at the current writerIndexand increases the writerIndex by 4 in th
  • readInt
    Gets a 32-bit integer at the current readerIndexand increases the readerIndex by 4 in this buffer.
  • toString
    Decodes this buffer's readable bytes into a string with the specified character set name. This metho
  • retain
  • writerIndex
    Sets the writerIndex of this buffer.
  • retain,
  • writerIndex,
  • isReadable,
  • writeLong,
  • writeShort,
  • skipBytes,
  • readLong,
  • array,
  • nioBuffer,
  • resetReaderIndex

Popular in Java

  • Parsing JSON documents to java classes using gson
  • onCreateOptionsMenu (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • setRequestProperty (URLConnection)
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Top 12 Jupyter Notebook extensions
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