Exemple #1
0
 public void CustomBufferReferenceTests()
 {
     BufferReferenceTests.TestOwnedBuffer(() => {
         return(new CustomBuffer <byte>(512));
     });
 }
Exemple #2
0
 public void AutoDisposeBufferReferenceTests()
 {
     BufferReferenceTests.TestOwnedBuffer(() => {
         return(new AutoDisposeBuffer <byte>(new byte[1024]));
     });
 }
 public void OwnedArrayReferenceTests()
 {
     BufferReferenceTests.TestOwnedBuffer(() => {
         return(new CustomMemoryForTest <byte>(new byte[1024]));
     });
 }
Exemple #4
0
 public void AutoPooledBufferReferenceTests()
 {
     BufferReferenceTests.TestOwnedBuffer(() => {
         return(new AutoPooledBuffer(1024));
     });
 }
 public void ArrayBufferReferenceTests()
 {
     BufferReferenceTests.TestBuffer(() => {
         return((Memory <byte>) new byte[1024]);
     });
 }
 public void EmptyReadOnlyBufferReferenceTests()
 {
     BufferReferenceTests.TestBuffer(() => {
         return(ReadOnlyMemory <byte> .Empty);
     });
 }
 public void OwnedArrayReferenceTests()
 {
     BufferReferenceTests.TestOwnedBuffer(() => {
         return((OwnedBuffer <byte>) new byte[1024]);
     });
 }
 public void PooledBufferReferenceTests()
 {
     BufferReferenceTests.TestOwnedBuffer(() => {
         return(BufferPool.Default.Rent(1000));
     });
 }
 public void EmptyBufferReferenceTests()
 {
     BufferReferenceTests.TestBuffer(() => {
         return(Buffer <byte> .Empty);
     });
 }
Exemple #10
0
 public void PooledBufferReferenceTests()
 {
     BufferReferenceTests.TestOwnedBuffer(() => {
         return(MemoryPool <byte> .Shared.Rent(1000));
     });
 }
Exemple #11
0
 public void OwnedArrayReferenceTests()
 {
     BufferReferenceTests.Run(() => {
         return(new OwnedArray <byte>(1024));
     });
 }
Exemple #12
0
 public void CustomBufferReferenceTests()
 {
     BufferReferenceTests.Run(() => {
         return(new CustomBuffer());
     });
 }
Exemple #13
0
 public void CustomBufferReferenceTests()
 {
     BufferReferenceTests.TestMemoryManager(() => {
         return(new CustomBuffer <byte>(512));
     });
 }