Gemstone Common Library
Show/Hide TOC

# BlockAllocatedMemoryStreamWriteTo Method

Writes the entire stream into destination, regardless of Position, which remains unchanged.

## Definition

Namespace: Gemstone.IO
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.160 -- Release Build+19b74ac03cedad8575bb1ceb00051318b7421d0d
C#
View Source Request Example

    public void WriteTo(
    	Stream destination
    )

VB
View Source Request Example

    Public Sub WriteTo (
    	destination As Stream
    )

C++
View Source Request Example

    public:
    void WriteTo(
    	Stream^ destination
    )

JavaScript
View Source Request Example

    function WriteTo(destination);

#### Parameters

destination Stream
  The stream onto which to write the current contents.

## Exceptions

ObjectDisposedException | The stream is closed.

## See Also

#### Reference

BlockAllocatedMemoryStream Class
Gemstone.IO Namespace