Home / Function/ testSetBytesViaStream() — netty Function Reference

testSetBytesViaStream() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

buffer/src/test/java/io/netty/buffer/ReadOnlyDirectByteBufferBufTest.java lines 242–255

    @Test
    public void testSetBytesViaStream() throws IOException {
        final ByteBuf buf = buffer(ByteBuffer.allocateDirect(8).asReadOnlyBuffer());
        try {
            assertThrows(ReadOnlyBufferException.class, new Executable() {
                @Override
                public void execute() throws Throwable {
                    buf.setBytes(0, new ByteArrayInputStream("test".getBytes()), 2);
                }
            });
        } finally {
            buf.release();
        }
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free