Home / Function/ testSetChar() — netty Function Reference

testSetChar() — netty Function Reference

Architecture documentation for the testSetChar() function in FixedCompositeByteBufTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  8f70d0c1_8956_496e_9f26_6e9825eae39d["testSetChar()"]
  0580ab1c_4068_2dfc_70ec_23a7d5440016["FixedCompositeByteBufTest"]
  8f70d0c1_8956_496e_9f26_6e9825eae39d -->|defined in| 0580ab1c_4068_2dfc_70ec_23a7d5440016
  style 8f70d0c1_8956_496e_9f26_6e9825eae39d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/test/java/io/netty/buffer/FixedCompositeByteBufTest.java lines 160–173

    @Test
    public void testSetChar() {
        final ByteBuf buf = newBuffer(wrappedBuffer(new byte[8]));
        try {
            assertThrows(ReadOnlyBufferException.class, new Executable() {
                @Override
                public void execute() {
                    buf.setChar(0, 'b');
                }
            });
        } finally {
            buf.release();
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does testSetChar() do?
testSetChar() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/FixedCompositeByteBufTest.java.
Where is testSetChar() defined?
testSetChar() is defined in buffer/src/test/java/io/netty/buffer/FixedCompositeByteBufTest.java at line 160.

Analyze Your Own Codebase

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

Try Supermodel Free