> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Class WrapperStream

Namespace: [VM.Managed](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed)\
Assembly: VMAppCore.dll

This class is to represent the wrapper stream.

```csharp theme={null}
public class WrapperStream : Stream
```

#### Inheritance

object ←
MarshalByRefObject ←
Stream ←
[WrapperStream](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.WrapperStream.md)

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkedObjects\<T>(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Constructors

### WrapperStream(string, FileMode, string)

Initializes a new instance of the [WrapperStream](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.WrapperStream.md) class.

```csharp theme={null}
public WrapperStream(string strFileName, FileMode mode, string comment)
```

#### Parameters

`strFileName` string

Name of the string file.

`mode` FileMode

The mode.

`comment` string

The comment.

## Properties

### CanRead

Gets or sets the readable state.

```csharp theme={null}
public override bool CanRead { get; }
```

#### Property Value

bool

### CanSeek

Gets or sets the seekable state.

```csharp theme={null}
public override bool CanSeek { get; }
```

#### Property Value

bool

### CanWrite

Gets or sets the writable state.

```csharp theme={null}
public override bool CanWrite { get; }
```

#### Property Value

bool

### Comment

Gets the comment.

```csharp theme={null}
public string Comment { get; }
```

#### Property Value

string

### Length

Gets the length.

```csharp theme={null}
public override long Length { get; }
```

#### Property Value

long

### PointerSize

Gets the size of pointer.

```csharp theme={null}
public long PointerSize { get; }
```

#### Property Value

long

### Position

Gets or sets the position.

```csharp theme={null}
public override long Position { get; set; }
```

#### Property Value

long

## Methods

### Close()

Close view.

```csharp theme={null}
public override void Close()
```

### Flush()

Flushes this instance.

```csharp theme={null}
public override void Flush()
```

### Read(byte\[], int, int)

Reads the specified buffer.

```csharp theme={null}
public override int Read(byte[] buffer, int offset, int count)
```

#### Parameters

`buffer` byte\[]

The buffer.

`offset` int

The offset.

`count` int

The count.

#### Returns

int

### Seek(long, SeekOrigin)

Seeks the specified offset.

```csharp theme={null}
public override long Seek(long offset, SeekOrigin origin)
```

#### Parameters

`offset` long

The offset.

`origin` SeekOrigin

The origin.

#### Returns

long

### SetLength(long)

Sets the length.

```csharp theme={null}
public override void SetLength(long len)
```

#### Parameters

`len` long

The length.

### Write(byte\[], int, int)

Writes the specified buffer.

```csharp theme={null}
public override void Write(byte[] buffer, int offset, int count)
```

#### Parameters

`buffer` byte\[]

The buffer.

`offset` int

The offset.

`count` int

The count.
