C# Class Org.BouncyCastle.Crypto.Tls.ByteQueue

A queue for bytes.

This file could be more optimized.

Afficher le fichier Open project: nonorganic/dssnet Class Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

AddData() public méthode

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.
Résultat void

ByteQueue() public méthode

public ByteQueue ( ) : System
Résultat System

ByteQueue() public méthode

public ByteQueue ( int capacity ) : System
capacity int
Résultat System

NextTwoPow() public static méthode

public static NextTwoPow ( int i ) : int
i int
Résultat int

Read() public méthode

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.
Résultat void

RemoveData() public méthode

public RemoveData ( int len, int skip ) : byte[]
len int
skip int
Résultat byte[]

RemoveData() public méthode

public RemoveData ( byte buf, int off, int len, int skip ) : void
buf byte
off int
len int
skip int
Résultat void

RemoveData() public méthode

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