Home / Function/ addContent() — netty Function Reference

addContent() — netty Function Reference

Architecture documentation for the addContent() function in MemoryAttribute.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  80fbc0dd_492a_7fd1_ea5c_88c4bde76ef9["addContent()"]
  6c399a89_7753_f796_2abf_5c169160e6c8["MemoryAttribute"]
  80fbc0dd_492a_7fd1_ea5c_88c4bde76ef9 -->|defined in| 6c399a89_7753_f796_2abf_5c169160e6c8
  style 80fbc0dd_492a_7fd1_ea5c_88c4bde76ef9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/main/java/io/netty/handler/codec/http/multipart/MemoryAttribute.java lines 80–93

    @Override
    public void addContent(ByteBuf buffer, boolean last) throws IOException {
        int localsize = buffer.readableBytes();
        try {
            checkSize(size + localsize);
        } catch (IOException e) {
            buffer.release();
            throw e;
        }
        if (definedSize > 0 && definedSize < size + localsize) {
            definedSize = size + localsize;
        }
        super.addContent(buffer, last);
    }

Subdomains

Frequently Asked Questions

What does addContent() do?
addContent() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/multipart/MemoryAttribute.java.
Where is addContent() defined?
addContent() is defined in codec-http/src/main/java/io/netty/handler/codec/http/multipart/MemoryAttribute.java at line 80.

Analyze Your Own Codebase

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

Try Supermodel Free