You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

LimitedMemoryPool.cs 410 B

5 years ago
123456789101112131415161718
  1. using System.Buffers;
  2. namespace MQTTnet.AspNetCore.Tests.Mockups
  3. {
  4. public class LimitedMemoryPool : MemoryPool<byte>
  5. {
  6. protected override void Dispose(bool disposing)
  7. {
  8. }
  9. public override IMemoryOwner<byte> Rent(int minBufferSize = -1)
  10. {
  11. return new MemoryOwner(minBufferSize);
  12. }
  13. public override int MaxBufferSize { get; }
  14. }
  15. }