Method | Description | |
---|---|---|
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. |
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Releases unmanaged and - optionally - managed resources.
|
Method | Description | |
---|---|---|
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.
|
protected Dispose ( bool disposing ) : void | ||
disposing | bool |
/// |
return | void |
public ResizableBuffer ( int initialSize ) : System | ||
initialSize | int | Initial buffer size. |
return | System |
public Resize ( int newSize ) : void | ||
newSize | int | The desired buffer size. |
return | void |