Esempio n. 1
0
 public void CustomBufferReferenceTests()
 {
     BufferReferenceTests.TestOwnedBuffer(() => {
         return(new CustomBuffer <byte>(512));
     });
 }
Esempio n. 2
0
 public void AutoDisposeBufferReferenceTests()
 {
     BufferReferenceTests.TestOwnedBuffer(() => {
         return(new AutoDisposeBuffer <byte>(new byte[1024]));
     });
 }
Esempio n. 3
0
 public void AutoPooledBufferReferenceTests()
 {
     BufferReferenceTests.TestOwnedBuffer(() => {
         return(new AutoPooledBuffer(1024));
     });
 }
 public void OwnedArrayReferenceTests()
 {
     BufferReferenceTests.TestOwnedBuffer(() => {
         return(new CustomMemoryForTest <byte>(new byte[1024]));
     });
 }
 public void PooledBufferReferenceTests()
 {
     BufferReferenceTests.TestOwnedBuffer(() => {
         return(BufferPool.Default.Rent(1000));
     });
 }
 public void OwnedArrayReferenceTests()
 {
     BufferReferenceTests.TestOwnedBuffer(() => {
         return((OwnedBuffer <byte>) new byte[1024]);
     });
 }
Esempio n. 7
0
 public void PooledBufferReferenceTests()
 {
     BufferReferenceTests.TestOwnedBuffer(() => {
         return(MemoryPool <byte> .Shared.Rent(1000));
     });
 }