Метод | Описание | |
---|---|---|
DangerousGetPointer ( ) : |
Gets the pointer to the internal buffer. Be careful with the pointer returned, because it may become invalid after the next Resize function call and after the ResizableBuffer instance is disposed. |
|
Dispose ( ) : void |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
|
ResizableBuffer ( ) : System |
Initializes a new instance of the ResizableBuffer class. The Environment.SystemPageSize is passed as an initial size. |
|
ResizableBuffer ( int initialSize ) : System |
Initializes a new instance of the ResizableBuffer class.
|
|
Resize ( int newSize ) : void |
Resizes the buffer. Be careful with the pointer returned, because it may become invalid after the next Resize function call and after the ResizableBuffer instance is disposed. |
Метод | Описание | |
---|---|---|
Dispose ( bool disposing ) : void |
Releases unmanaged and - optionally - managed resources.
|
Метод | Описание | |
---|---|---|
EnsureBufferIsOfTheRightSize ( int newSize ) : void |
Ensures that the current buffer can store the newSize bytes. If the current buffer is not large enough, it's extended.
|
public DangerousGetPointer ( ) : |
||
Результат |
protected Dispose ( bool disposing ) : void | ||
disposing | bool |
/// |
Результат | void |
public ResizableBuffer ( int initialSize ) : System | ||
initialSize | int | Initial buffer size. |
Результат | System |
public Resize ( int newSize ) : void | ||
newSize | int | The desired buffer size. |
Результат | void |