프로퍼티 | 타입 | 설명 | |
---|---|---|---|
GetFilledBuffer | IBuffer | ||
GetSingleSlabPool | bool | ||
SetSingleSlabPool | void | ||
TryAllocateBlocksInSlabs | long | ||
TryFreeSlabs | void |
메소드 | 설명 | |
---|---|---|
BufferPool ( long slabSize, int initialSlabs, int subsequentSlabs ) : System |
Initializes a new instance of the BufferPool class
|
|
GetBuffer ( long size ) : IBuffer |
Creates a buffer of the specified size
|
|
GetBuffer ( long size, byte filledWith ) : IBuffer |
Creates a buffer of the specified size, filled with the contents of a specified byte array
|
메소드 | 설명 | |
---|---|---|
GetFilledBuffer ( IList |
Helper method that gets a filled buffer constructed from a list of memory blocks
|
|
GetSingleSlabPool ( ) : bool | ||
SetSingleSlabPool ( bool value ) : void | ||
TryAllocateBlocksInSlabs ( long totalLength, int maxBlocks, IMemorySlab slabs, List |
Helper method that searches for free blocks in an array of slabs and returns allocated blocks
|
|
TryFreeSlabs ( ) : void |
Searches for empty slabs and frees one if there are more than InitialSlabs number of slabs.
|
public BufferPool ( long slabSize, int initialSlabs, int subsequentSlabs ) : System | ||
slabSize | long | Length, in bytes, of a slab in the BufferPool |
initialSlabs | int | Number of slabs to create initially |
subsequentSlabs | int | Number of additional slabs to create at a time |
리턴 | System |
public GetBuffer ( long size ) : IBuffer | ||
size | long | Buffer size, in bytes |
리턴 | IBuffer |
public GetBuffer ( long size, byte filledWith ) : IBuffer | ||
size | long | Buffer size, in bytes |
filledWith | byte | Byte array to copy to buffer |
리턴 | IBuffer |