mixedAttributeRefCnt() — netty Function Reference
Architecture documentation for the mixedAttributeRefCnt() function in MixedTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 37164afe_85cc_c19b_fbbb_1d90b5505420["mixedAttributeRefCnt()"] 735596ac_d321_c087_79a1_b4d75e1724dc["MixedTest"] 37164afe_85cc_c19b_fbbb_1d90b5505420 -->|defined in| 735596ac_d321_c087_79a1_b4d75e1724dc style 37164afe_85cc_c19b_fbbb_1d90b5505420 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/multipart/MixedTest.java lines 30–44
@Test
public void mixedAttributeRefCnt() throws IOException {
MixedAttribute attribute = new MixedAttribute("foo", 100);
Assertions.assertEquals(1, attribute.refCnt());
attribute.retain();
Assertions.assertEquals(2, attribute.refCnt());
attribute.addContent(Unpooled.wrappedBuffer(new byte[90]), false);
Assertions.assertEquals(2, attribute.refCnt());
attribute.addContent(Unpooled.wrappedBuffer(new byte[90]), true);
Assertions.assertEquals(2, attribute.refCnt());
attribute.release(2);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does mixedAttributeRefCnt() do?
mixedAttributeRefCnt() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/multipart/MixedTest.java.
Where is mixedAttributeRefCnt() defined?
mixedAttributeRefCnt() is defined in codec-http/src/test/java/io/netty/handler/codec/http/multipart/MixedTest.java at line 30.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free