C# 클래스 hpack.DynamicTable

파일 보기 프로젝트 열기: ringostarr80/hpack 1 사용 예제들

공개 메소드들

메소드 설명
Add ( HeaderField header ) : void

Add the header field to the dynamic table. Entries are evicted from the dynamic table until the size of the table and the new header field is less than or equal to the table's capacity. If the size of the new entry is larger than the table's capacity, the dynamic table will be cleared.

Clear ( ) : void

Remove all entries from the dynamic table.

DynamicTable ( int initialCapacity ) : System

Creates a new dynamic table with the specified initial capacity.

GetCapacity ( ) : int

Return the maximum allowable size of the dynamic table.

GetEntry ( int index ) : HeaderField

Return the header field at the given index. The first and newest entry is always at index 1, and the oldest entry is at the index length().

GetSize ( ) : int

Return the current size of the dynamic table. This is the sum of the size of the entries.

Length ( ) : int

Return the number of header fields in the dynamic table.

Remove ( ) : HeaderField

Remove and return the oldest header field from the dynamic table.

SetCapacity ( int capacity ) : void

Set the maximum size of the dynamic table. Entries are evicted from the dynamic table until the size of the table is less than or equal to the maximum size.

메소드 상세

Add() 공개 메소드

Add the header field to the dynamic table. Entries are evicted from the dynamic table until the size of the table and the new header field is less than or equal to the table's capacity. If the size of the new entry is larger than the table's capacity, the dynamic table will be cleared.
public Add ( HeaderField header ) : void
header HeaderField Header.
리턴 void

Clear() 공개 메소드

Remove all entries from the dynamic table.
public Clear ( ) : void
리턴 void

DynamicTable() 공개 메소드

Creates a new dynamic table with the specified initial capacity.
public DynamicTable ( int initialCapacity ) : System
initialCapacity int Initial capacity.
리턴 System

GetCapacity() 공개 메소드

Return the maximum allowable size of the dynamic table.
public GetCapacity ( ) : int
리턴 int

GetEntry() 공개 메소드

Return the header field at the given index. The first and newest entry is always at index 1, and the oldest entry is at the index length().
public GetEntry ( int index ) : HeaderField
index int Index.
리턴 HeaderField

GetSize() 공개 메소드

Return the current size of the dynamic table. This is the sum of the size of the entries.
public GetSize ( ) : int
리턴 int

Length() 공개 메소드

Return the number of header fields in the dynamic table.
public Length ( ) : int
리턴 int

Remove() 공개 메소드

Remove and return the oldest header field from the dynamic table.
public Remove ( ) : HeaderField
리턴 HeaderField

SetCapacity() 공개 메소드

Set the maximum size of the dynamic table. Entries are evicted from the dynamic table until the size of the table is less than or equal to the maximum size.
public SetCapacity ( int capacity ) : void
capacity int Capacity.
리턴 void