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

A queue for bytes.

This file could be more optimized.

Mostrar archivo Open project: nonorganic/dssnet Class Usage Examples

Public Methods

Method 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 method

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.
return void

ByteQueue() public method

public ByteQueue ( ) : System
return System

ByteQueue() public method

public ByteQueue ( int capacity ) : System
capacity int
return System

NextTwoPow() public static method

public static NextTwoPow ( int i ) : int
i int
return int

Read() public method

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.
return void

RemoveData() public method

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

RemoveData() public method

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

RemoveData() public method

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