QpackDecoder.java — netty Source File
Architecture documentation for QpackDecoder.java, a java file in the netty codebase.
Entity Profile
Relationship Graph
Source Code
/*
* Copyright 2020 The Netty Project
*
* The Netty Project licenses this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*/
package io.netty.handler.codec.http3;
import io.netty.buffer.ByteBuf;
import io.netty.handler.codec.quic.QuicStreamChannel;
import io.netty.util.AsciiString;
import io.netty.util.collection.IntObjectHashMap;
import io.netty.util.internal.logging.InternalLogger;
import io.netty.util.internal.logging.InternalLoggerFactory;
import java.util.ArrayList;
import java.util.List;
import java.util.function.BiConsumer;
import static io.netty.handler.codec.http3.Http3CodecUtils.closeOnFailure;
import static io.netty.handler.codec.http3.QpackDecoderStateSyncStrategy.ackEachInsert;
import static io.netty.handler.codec.http3.QpackUtil.decodePrefixedIntegerAsInt;
import static io.netty.handler.codec.http3.QpackUtil.encodePrefixedInteger;
import static io.netty.handler.codec.http3.QpackUtil.firstByteEquals;
import static io.netty.handler.codec.http3.QpackUtil.toIntOrThrow;
import static java.lang.Math.floorDiv;
final class QpackDecoder {
private static final InternalLogger logger = InternalLoggerFactory.getInstance(QpackDecoder.class);
private static final QpackException DYNAMIC_TABLE_CAPACITY_EXCEEDS_MAX =
QpackException.newStatic(QpackDecoder.class, "setDynamicTableCapacity(...)",
"QPACK - decoder dynamic table capacity exceeds max capacity.");
private static final QpackException HEADER_ILLEGAL_INDEX_VALUE =
QpackException.newStatic(QpackDecoder.class, "decodeIndexed(...)", "QPACK - illegal index value");
private static final QpackException NAME_ILLEGAL_INDEX_VALUE =
QpackException.newStatic(QpackDecoder.class, "decodeLiteralWithNameRef(...)",
"QPACK - illegal name index value");
private static final QpackException INVALID_REQUIRED_INSERT_COUNT =
QpackException.newStatic(QpackDecoder.class, "decodeRequiredInsertCount(...)",
"QPACK - invalid required insert count");
private static final QpackException MAX_BLOCKED_STREAMS_EXCEEDED =
QpackException.newStatic(QpackDecoder.class, "shouldWaitForDynamicTableUpdates(...)",
"QPACK - exceeded max blocked streams");
private static final QpackException BLOCKED_STREAM_RESUMPTION_FAILED =
QpackException.newStatic(QpackDecoder.class, "sendInsertCountIncrementIfRequired(...)",
"QPACK - failed to resume a blocked stream");
private static final QpackException UNKNOWN_TYPE =
QpackException.newStatic(QpackDecoder.class, "decode(...)", "QPACK - unknown type");
private final QpackHuffmanDecoder huffmanDecoder;
// ... (457 more lines)
Domain
Subdomains
Classes
Source
Frequently Asked Questions
What does QpackDecoder.java do?
QpackDecoder.java is a source file in the netty codebase, written in java. It belongs to the Buffer domain, Allocators subdomain.
Where is QpackDecoder.java in the architecture?
QpackDecoder.java is located at codec-http3/src/main/java/io/netty/handler/codec/http3/QpackDecoder.java (domain: Buffer, subdomain: Allocators, directory: codec-http3/src/main/java/io/netty/handler/codec/http3).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free