Пример #1
0
    public bool EnsureDynamicTableSizeUpdate(Span <byte> buffer, out int length)
    {
        // Check if there is a table size update that should be encoded
        if (_pendingTableSizeUpdate)
        {
            bool success = HPackEncoder.EncodeDynamicTableSizeUpdate((int)_maxHeaderTableSize, buffer, out length);
            _pendingTableSizeUpdate = false;
            return(success);
        }

        length = 0;
        return(true);
    }