private HpackHeaderField GetIndexedHeader(int index) { if ((uint)index <= (uint)HpackStaticTable.Length) { return(HpackStaticTable.GetEntry(index)); } if ((uint)(index - HpackStaticTable.Length) <= (uint)_hpackDynamicTable.Length()) { return(_hpackDynamicTable.GetEntry(index - HpackStaticTable.Length)); } ThrowHelper.ThrowHttp2Exception_IndexHeaderIllegalIndexValue(); return(null); }
private ICharSequence ReadName(int index) { if ((uint)index <= (uint)HpackStaticTable.Length) { HpackHeaderField hpackHeaderField = HpackStaticTable.GetEntry(index); return(hpackHeaderField._name); } if ((uint)(index - HpackStaticTable.Length) <= (uint)_hpackDynamicTable.Length()) { HpackHeaderField hpackHeaderField = _hpackDynamicTable.GetEntry(index - HpackStaticTable.Length); return(hpackHeaderField._name); } ThrowHelper.ThrowHttp2Exception_ReadNameIllegalIndexValue(); return(null); }