Home / Class/ SlicedByteBuf Class — netty Architecture

SlicedByteBuf Class — netty Architecture

Architecture documentation for the SlicedByteBuf class in SlicedByteBuf.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  b807cad2_2316_edf9_8797_38ba4d10a321["SlicedByteBuf"]
  fc9d50bc_1f48_da73_c56b_f54ec30567a4["SlicedByteBuf.java"]
  b807cad2_2316_edf9_8797_38ba4d10a321 -->|defined in| fc9d50bc_1f48_da73_c56b_f54ec30567a4
  bca29ceb_2057_8e27_e654_b1af0b1ddce3["SlicedByteBuf()"]
  b807cad2_2316_edf9_8797_38ba4d10a321 -->|method| bca29ceb_2057_8e27_e654_b1af0b1ddce3
  d625dd62_58b0_f165_32ec_d7daf6dbdbd8["initLength()"]
  b807cad2_2316_edf9_8797_38ba4d10a321 -->|method| d625dd62_58b0_f165_32ec_d7daf6dbdbd8
  80a6a874_4c3a_25b8_a71b_f9900339f87c["length()"]
  b807cad2_2316_edf9_8797_38ba4d10a321 -->|method| 80a6a874_4c3a_25b8_a71b_f9900339f87c
  d5e8fe10_9b4d_3721_cb92_7a2ead275eaa["capacity()"]
  b807cad2_2316_edf9_8797_38ba4d10a321 -->|method| d5e8fe10_9b4d_3721_cb92_7a2ead275eaa

Relationship Graph

Source Code

buffer/src/main/java/io/netty/buffer/SlicedByteBuf.java lines 26–49

@Deprecated
public class SlicedByteBuf extends AbstractUnpooledSlicedByteBuf {

    private int length;

    public SlicedByteBuf(ByteBuf buffer, int index, int length) {
        super(buffer, index, length);
    }

    @Override
    final void initLength(int length) {
        this.length = length;
    }

    @Override
    final int length() {
        return length;
    }

    @Override
    public int capacity() {
        return length;
    }
}

Frequently Asked Questions

What is the SlicedByteBuf class?
SlicedByteBuf is a class in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/SlicedByteBuf.java.
Where is SlicedByteBuf defined?
SlicedByteBuf is defined in buffer/src/main/java/io/netty/buffer/SlicedByteBuf.java at line 26.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free