---
title: "StreamWrapper Methods "
canonical: https://www.graphicsmill.com/docs/gm5/Methods_T_Aurigma_GraphicsMill_StreamWrapper.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# StreamWrapper Methods 
 
The [StreamWrapper](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_StreamWrapper.htm.md) type exposes the following members.
 
## Methods

|   |  Name |  Description |
| --- | --- | --- |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [{dtor}](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_StreamWrapper_%7Bdtor%7D.htm.md) |  Enables using delete operator in C++ applications. It is strongly not recommended to use it directly. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [Clone](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_StreamWrapper_Clone_1_d0b6fba8.htm.md) |  Creates a new stream object with its own seek pointer that references the same bytes as the original stream. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [Commit](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_StreamWrapper_Commit_1_e1836fc4.htm.md) |  Ensures that any changes made to a stream object open in transacted mode are reflected in the parent storage. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [CopyTo](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_StreamWrapper_CopyTo_4_027d1944.htm.md) |  Copies a specified number of bytes from the current seek pointer in the stream to the current seek pointer in another stream. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [Equals](http://msdn2.microsoft.com/en-us/bsc2ak47) |  (Inherited from [Object](http://msdn2.microsoft.com/en-us/e5kfa45b).) |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [GetHashCode](http://msdn2.microsoft.com/en-us/zdee4b3y) |  (Inherited from [Object](http://msdn2.microsoft.com/en-us/e5kfa45b).) |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [GetType](http://msdn2.microsoft.com/en-us/dfwy45w9) |  (Inherited from [Object](http://msdn2.microsoft.com/en-us/e5kfa45b).) |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [LockRegion](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_StreamWrapper_LockRegion_3_c26e67f0.htm.md) |  Restricts access to a specified range of bytes in the stream. |
 |  ![Protected method](https://www.graphicsmill.com/docs/gm5/icons/protmethod.gif) |  [MemberwiseClone](http://msdn2.microsoft.com/en-us/57ctke0a) |  (Inherited from [Object](http://msdn2.microsoft.com/en-us/e5kfa45b).) |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [Read](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_StreamWrapper_Read_3_4919b3cd.htm.md) |  Reads a specified number of bytes from the stream object into memory starting at the current seek pointer. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [Revert](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_StreamWrapper_Revert.htm.md) |  Discards all changes that have been made to a transacted stream since the last [Commit(Int32)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_StreamWrapper_Commit_1_e1836fc4.htm.md) call. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [Seek](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_StreamWrapper_Seek_3_a85dc038.htm.md) |  Changes the seek pointer to a new location relative to the beginning of the stream, to the end of the stream, or to the current seek pointer. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [SetSize](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_StreamWrapper_SetSize_1_5f4f955f.htm.md) |  Changes the size of the stream object. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [Stat](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_StreamWrapper_Stat_2_fbf94624.htm.md) |  Retrieves the **STATSTG** structure for this stream. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [ToString](http://msdn2.microsoft.com/en-us/7bxwbwt2) |  (Inherited from [Object](http://msdn2.microsoft.com/en-us/e5kfa45b).) |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [UnlockRegion](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_StreamWrapper_UnlockRegion_3_c26e67f0.htm.md) |  Removes the access restriction on a range of bytes previously restricted with [LockRegion(Int64, Int64, Int32)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_StreamWrapper_LockRegion_3_c26e67f0.htm.md). |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [Write](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_StreamWrapper_Write_3_4919b3cd.htm.md) |  Writes a specified number of bytes into the stream object starting at the current seek pointer. |
   
## See Also

### Reference

- [StreamWrapper Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_StreamWrapper.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
