Home / Function/ setValue() — netty Function Reference

setValue() — netty Function Reference

Architecture documentation for the setValue() function in InternalAttribute.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  118bc8f6_d772_e57b_5309_257181bf55e9["setValue()"]
  431cc176_2e7e_e5dd_cd84_a728158cf079["InternalAttribute"]
  118bc8f6_d772_e57b_5309_257181bf55e9 -->|defined in| 431cc176_2e7e_e5dd_cd84_a728158cf079
  style 118bc8f6_d772_e57b_5309_257181bf55e9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/main/java/io/netty/handler/codec/http/multipart/InternalAttribute.java lines 59–68

    public void setValue(String value, int rank) {
        ObjectUtil.checkNotNull(value, "value");
        ByteBuf buf = Unpooled.copiedBuffer(value, charset);
        ByteBuf old = this.value.set(rank, buf);
        if (old != null) {
            size -= old.readableBytes();
            old.release();
        }
        size += buf.readableBytes();
    }

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free