
## write {#bytes}

Writes all of the specified bytes to the stream.



```python
def write(self, bytes):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| bytes | bytes | The bytes to write. |


## write {#bytes-int-int}

Writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.



```python
def write(self, buffer, offset, count):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| buffer | bytes | An array of bytes. This method copies `count` bytes from `buffer` to the current stream. |
| offset | int | The zero-based byte offset in `buffer` at which to begin copying bytes to the current stream. |
| count | int | The number of bytes to be written to the current stream. |



### See Also
* module [`aspose.cad`](../../)
* class [`StreamContainer`](/cad/python-net/aspose.cad/streamcontainer)
