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

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 AddData(ReadOnlySpan<byte> 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 void Read(Span<byte> buffer, int skip)

public int ReadInt32()

public int ReadUint16(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 void RemoveData(Span<byte> buffer, int skip)

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

public void Shrink()