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

Org.BouncyCastle.Tls.ByteQueue

public sealed class ByteQueue
A queue for bytes. This file could be more optimized.
namespace Org.BouncyCastle.Tls { public sealed class ByteQueue { 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); public void CopyTo(Stream output, int length); public void Read(byte[] buf, int offset, int len, int skip); public int ReadInt32(); public short ReadUint8(int skip); public int ReadUint16(int skip); public void RemoveData(int i); public void RemoveData(byte[] buf, int off, int len, int skip); public byte[] RemoveData(int len, int skip); public void Shrink(); } }