Home / Function/ skipOneLine() — netty Function Reference

skipOneLine() — netty Function Reference

Architecture documentation for the skipOneLine() function in HttpPostMultipartRequestDecoder.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  be01dac6_89db_d3ce_81e3_adc6cf969ceb["skipOneLine()"]
  d07408ef_0ab6_54bb_c64e_0b5b9a0aac25["HttpPostMultipartRequestDecoder"]
  be01dac6_89db_d3ce_81e3_adc6cf969ceb -->|defined in| d07408ef_0ab6_54bb_c64e_0b5b9a0aac25
  44dc9a0e_9473_e766_e499_985b3abd1cad["InterfaceHttpData()"]
  44dc9a0e_9473_e766_e499_985b3abd1cad -->|calls| be01dac6_89db_d3ce_81e3_adc6cf969ceb
  style be01dac6_89db_d3ce_81e3_adc6cf969ceb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/main/java/io/netty/handler/codec/http/multipart/HttpPostMultipartRequestDecoder.java lines 1296–1318

    private boolean skipOneLine() {
        if (!undecodedChunk.isReadable()) {
            return false;
        }
        byte nextByte = undecodedChunk.readByte();
        if (nextByte == HttpConstants.CR) {
            if (!undecodedChunk.isReadable()) {
                undecodedChunk.readerIndex(undecodedChunk.readerIndex() - 1);
                return false;
            }
            nextByte = undecodedChunk.readByte();
            if (nextByte == HttpConstants.LF) {
                return true;
            }
            undecodedChunk.readerIndex(undecodedChunk.readerIndex() - 2);
            return false;
        }
        if (nextByte == HttpConstants.LF) {
            return true;
        }
        undecodedChunk.readerIndex(undecodedChunk.readerIndex() - 1);
        return false;
    }

Subdomains

Frequently Asked Questions

What does skipOneLine() do?
skipOneLine() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/multipart/HttpPostMultipartRequestDecoder.java.
Where is skipOneLine() defined?
skipOneLine() is defined in codec-http/src/main/java/io/netty/handler/codec/http/multipart/HttpPostMultipartRequestDecoder.java at line 1296.
What calls skipOneLine()?
skipOneLine() is called by 1 function(s): InterfaceHttpData.

Analyze Your Own Codebase

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

Try Supermodel Free