Skip to main content

Motion Standalone Preprocessor C# library 2025 R2

Class WrapperStream

Last update: 16.07.2025

Namespace: VM.Managed
Assembly: VMAppCore.dll

This class is to represent the wrapper stream.

public class WrapperStream : Stream

Inheritance

objectMarshalByRefObjectStreamWrapperStream

Extension Methods

LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects(object, LinkPropertyType)

Constructors

WrapperStream(string, FileMode, string)

Initializes a new instance of the class.

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.

public override bool CanRead { get; }

Property Value

bool

CanSeek

Gets or sets the seekable state.

public override bool CanSeek { get; }

Property Value

bool

CanWrite

Gets or sets the writable state.

public override bool CanWrite { get; }

Property Value

bool

Comment

Gets the comment.

public string Comment { get; }

Property Value

string

Length

Gets the length.

public override long Length { get; }

Property Value

long

PointerSize

Gets the size of pointer.

public long PointerSize { get; }

Property Value

long

Position

Gets or sets the position.

public override long Position { get; set; }

Property Value

long

Methods

Close()

Close view.

public override void Close()

Flush()

Flushes this instance.

public override void Flush()

Read(byte[], int, int)

Reads the specified buffer.

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.

public override long Seek(long offset, SeekOrigin origin)

Parameters

offset long

The offset.

origin SeekOrigin

The origin.

Returns

long

SetLength(long)

Sets the length.

public override void SetLength(long len)

Parameters

len long

The length.

Write(byte[], int, int)

Writes the specified buffer.

public override void Write(byte[] buffer, int offset, int count)

Parameters

buffer byte[]

The buffer.

offset int

The offset.

count int

The count.

Connect with Ansys