C# 클래스 Org.BouncyCastle.Crypto.Tls.ByteQueue

A queue for bytes.

This file could be more optimized.

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

공개 메소드들

메소드 설명
AddData ( byte data, int offset, int len ) : void

Add some data to our buffer.

ByteQueue ( ) : System
ByteQueue ( int capacity ) : System
NextTwoPow ( int i ) : int
Read ( byte buf, int offset, int len, int skip ) : void

Read data from the buffer.

RemoveData ( int len, int skip ) : byte[]
RemoveData ( byte buf, int off, int len, int skip ) : void
RemoveData ( int i ) : void

Remove some bytes from our data from the beginning.

메소드 상세

AddData() 공개 메소드

Add some data to our buffer.
public AddData ( byte data, int offset, int len ) : void
data byte A byte-array to read data from.
offset int How many bytes to skip at the beginning of the array.
len int How many bytes to read from the array.
리턴 void

ByteQueue() 공개 메소드

public ByteQueue ( ) : System
리턴 System

ByteQueue() 공개 메소드

public ByteQueue ( int capacity ) : System
capacity int
리턴 System

NextTwoPow() 공개 정적인 메소드

public static NextTwoPow ( int i ) : int
i int
리턴 int

Read() 공개 메소드

Read data from the buffer.
public Read ( byte buf, int offset, int len, int skip ) : void
buf byte The buffer where the read data will be copied to.
offset int How many bytes to skip at the beginning of buf.
len int How many bytes to read at all.
skip int How many bytes from our data to skip.
리턴 void

RemoveData() 공개 메소드

public RemoveData ( int len, int skip ) : byte[]
len int
skip int
리턴 byte[]

RemoveData() 공개 메소드

public RemoveData ( byte buf, int off, int len, int skip ) : void
buf byte
off int
len int
skip int
리턴 void

RemoveData() 공개 메소드

Remove some bytes from our data from the beginning.
public RemoveData ( int i ) : void
i int How many bytes to remove.
리턴 void