<PackageReference Include="BouncyCastle.Cryptography" Version="2.3.1" />

ByteQueue

public sealed class ByteQueue
A queue for bytes. This file could be more optimized.
public int Available { get; }

public ByteQueue()

public ByteQueue(int capacity)

public ByteQueue(byte[] buf, int off, int len)

public void AddData(byte[] buf, int off, int len)

Add some data to our buffer.

public void CopyTo(Stream output, int length)

Copy some bytes from the beginning of the data to the provided Stream.

public void Read(byte[] buf, int offset, int len, int skip)

Read data from the buffer.

public int ReadInt32()

public int ReadUint16(int skip)

public short ReadUint8(int skip)

public void RemoveData(int i)

Remove some bytes from our data from the beginning.

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

Remove data from the buffer.

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

public void Shrink()