Home / Function/ testSetBytesViaArray() — netty Function Reference

testSetBytesViaArray() — netty Function Reference

Architecture documentation for the testSetBytesViaArray() function in ReadOnlyDirectByteBufferBufTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  ade58dae_7351_0676_2e6b_bc83aa7ea08a["testSetBytesViaArray()"]
  2436e747_1306_235e_86df_d12765b22d51["ReadOnlyDirectByteBufferBufTest"]
  ade58dae_7351_0676_2e6b_bc83aa7ea08a -->|defined in| 2436e747_1306_235e_86df_d12765b22d51
  style ade58dae_7351_0676_2e6b_bc83aa7ea08a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/test/java/io/netty/buffer/ReadOnlyDirectByteBufferBufTest.java lines 210–223

    @Test
    public void testSetBytesViaArray() {
        final ByteBuf buf = buffer(allocate(8).asReadOnlyBuffer());
        try {
            assertThrows(ReadOnlyBufferException.class, new Executable() {
                @Override
                public void execute() {
                    buf.setBytes(0, "test".getBytes());
                }
            });
        } finally {
            buf.release();
        }
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free