C# Class System.Buffers.ArrayPool.Tests.ArrayPoolUnitTests

Datei anzeigen Open project: dotnet/corefx

Public Methods

Method Description
BytePoolInstances ( ) : IEnumerable

Private Methods

Method Description
CallingReturnBufferWithNullBufferThrows ( ArrayPool pool ) : void
CallingReturnOnReferenceTypeArrayAndClearingSetsTypesToNull ( ) : void
CallingReturnOnReferenceTypeArrayDoesNotClearTheArray ( ) : void
CallingReturnOnValueTypeWithInternalReferenceTypesAndClearingSetsValueTypeToDefault ( ) : void
CallingReturnWithClearingDoesClearTheBuffer ( ArrayPool pool ) : void
CallingReturnWithoutClearingDoesNotClearTheBuffer ( ArrayPool pool ) : void
CanRentManySizedBuffers ( ArrayPool pool ) : void
CheckFilledArray ( byte buffer, byte>.Action assert ) : void
CreateWillCreateMultipleInstancesOfTheSameType ( ) : void
CreatingAPoolWithInvalidArrayCountThrows ( int length ) : void
CreatingAPoolWithInvalidMaximumArraySizeThrows ( int length ) : void
CreatingAPoolWithValidMaximumArraySizeSucceeds ( int length ) : void
FillArray ( byte buffer ) : void
NewDefaultArrayPoolWithSmallBufferSizeRoundsToOurSmallestSupportedSize ( ) : void
RentAndReturnManyOfTheSameSize_NoneAreSame ( ArrayPool pool ) : void
RentBufferFiresRentedDiagnosticEvent ( ) : void
RentCanReturnBiggerArraySizeThanRequested ( ) : void
Renting0LengthArrayReturnsSingleton ( ArrayPool pool ) : void
RentingAfterPoolExhaustionReturnsSizeForCorrespondingBucket_AtLimit ( ) : void
RentingAfterPoolExhaustionReturnsSizeForCorrespondingBucket_JustBelowLimit ( ) : void
RentingAfterPoolExhaustionReturnsSizeForCorrespondingBucket_SmallerThanLimit ( ) : void
RentingAllBuffersAndCallingRentAgainWillAllocateBufferAndReturnIt ( ) : void
RentingAnArrayWithLengthGreaterThanSpecifiedInCreateStillSucceeds ( ) : void
RentingBufferOverConfiguredMaximumSizeFiresDiagnosticEvent ( ) : void
RentingGiganticArraySucceedsOrOOMs ( ) : void
RentingManyBuffersFiresExpectedDiagnosticEvents ( ) : void
RentingMoreArraysThanSpecifiedInCreateWillStillSucceed ( ) : void
RentingMultipleArraysGivesBackDifferentInstances ( ) : void
RentingNonExistentBufferFiresAllocatedDiagnosticEvent ( ) : void
RentingReturningThenRentingABufferShouldNotAllocate ( ) : void
RentingSpecificLengthsYieldsExpectedLengths ( int requestedMinimum, int expectedLength ) : void
RentingWithInvalidLengthThrows ( ArrayPool pool ) : void
ReturnBufferFiresDiagnosticEvent ( ) : void
ReturningABufferGreaterThanMaxSizeDoesNotThrow ( ) : void
ReturningANonPooledBufferOfDifferentSizeToThePoolThrows ( ArrayPool pool ) : void
RoundUpToPowerOf2 ( int i ) : int
RunWithListener ( System.Action body, EventLevel level, Action callback ) : int
SharedInstanceCreatesAnInstanceOnFirstCall ( ) : void
SharedInstanceOnlyCreatesOneInstanceOfOneTypep ( ) : void
TakingAllBuffersFromABucketPlusAnAllocatedOneShouldAllowReturningAllBuffers ( ) : void
UsePoolInParallel ( ArrayPool pool ) : void

Method Details

BytePoolInstances() public static method

public static BytePoolInstances ( ) : IEnumerable
return IEnumerable