Search Results for

    Show / Hide Table of Contents

    Class DeviceDriverStream

    This stream encapsulates the interface between a user mode application and a device driver on the controller.

    Inheritance
    System.Object
    System.MarshalByRefObject
    System.IO.Stream
    ControllerBoundStream
    DeviceDriverStream
    Implements
    System.IDisposable
    Inherited Members
    System.IO.Stream.Null
    System.IO.Stream.CopyToAsync(System.IO.Stream)
    System.IO.Stream.CopyToAsync(System.IO.Stream, System.Int32)
    System.IO.Stream.CopyToAsync(System.IO.Stream, System.Int32, System.Threading.CancellationToken)
    System.IO.Stream.CopyTo(System.IO.Stream)
    System.IO.Stream.CopyTo(System.IO.Stream, System.Int32)
    System.IO.Stream.Dispose()
    System.IO.Stream.Dispose(System.Boolean)
    System.IO.Stream.FlushAsync()
    System.IO.Stream.FlushAsync(System.Threading.CancellationToken)
    System.IO.Stream.CreateWaitHandle()
    System.IO.Stream.BeginRead(System.Byte[], System.Int32, System.Int32, System.AsyncCallback, System.Object)
    System.IO.Stream.EndRead(System.IAsyncResult)
    System.IO.Stream.ReadAsync(System.Byte[], System.Int32, System.Int32)
    System.IO.Stream.ReadAsync(System.Byte[], System.Int32, System.Int32, System.Threading.CancellationToken)
    System.IO.Stream.BeginWrite(System.Byte[], System.Int32, System.Int32, System.AsyncCallback, System.Object)
    System.IO.Stream.EndWrite(System.IAsyncResult)
    System.IO.Stream.WriteAsync(System.Byte[], System.Int32, System.Int32)
    System.IO.Stream.WriteAsync(System.Byte[], System.Int32, System.Int32, System.Threading.CancellationToken)
    System.IO.Stream.ReadByte()
    System.IO.Stream.WriteByte(System.Byte)
    System.IO.Stream.Synchronized(System.IO.Stream)
    System.IO.Stream.ObjectInvariant()
    System.IO.Stream.CanTimeout
    System.IO.Stream.ReadTimeout
    System.IO.Stream.WriteTimeout
    System.MarshalByRefObject.MemberwiseClone(System.Boolean)
    System.MarshalByRefObject.GetLifetimeService()
    System.MarshalByRefObject.InitializeLifetimeService()
    System.MarshalByRefObject.CreateObjRef(System.Type)
    Namespace: ABB.Robotics.Controllers
    Assembly: ABB.Robotics.Controllers.PC.dll
    Syntax
    public class DeviceDriverStream : ControllerBoundStream, IDisposable

    Constructors

    DeviceDriverStream(Controller, String)

    Opens the stream with Read access.

    Declaration
    public DeviceDriverStream(Controller controller, string name)
    Parameters
    Type Name Description
    Controller controller

    Controller that hosts the stream.

    System.String name

    Name of device.

    DeviceDriverStream(Controller, String, DeviceAccess)

    Opens a stream with the specified name and access.

    Declaration
    public DeviceDriverStream(Controller controller, string name, DeviceAccess access)
    Parameters
    Type Name Description
    Controller controller

    Controller that hosts the stream.

    System.String name

    Name of stream to open.

    DeviceAccess access

    Access of stream.

    DeviceDriverStream(Controller, String, DeviceAccess, Int32)

    Opens a stream with the specified name and access.

    Declaration
    public DeviceDriverStream(Controller controller, string name, DeviceAccess access, int flags)
    Parameters
    Type Name Description
    Controller controller

    Controller that hosts the stream.

    System.String name

    Name of stream to open.

    DeviceAccess access

    Access of stream.

    System.Int32 flags

    Device specific flags.

    Properties

    CanRead

    Check if the stream can be read.

    Declaration
    public override bool CanRead { get; }
    Property Value
    Type Description
    System.Boolean
    Overrides
    System.IO.Stream.CanRead

    CanSeek

    Checks if the stream can be seeked.

    Declaration
    public override bool CanSeek { get; }
    Property Value
    Type Description
    System.Boolean
    Overrides
    System.IO.Stream.CanSeek

    CanWrite

    Checks if the stream can be written.

    Declaration
    public override bool CanWrite { get; }
    Property Value
    Type Description
    System.Boolean
    Overrides
    System.IO.Stream.CanWrite

    Length

    Not possible to read length from a device stream.

    Declaration
    public override long Length { get; }
    Property Value
    Type Description
    System.Int64
    Overrides
    System.IO.Stream.Length

    Position

    It is not possible the seek on a device stream.

    Declaration
    public override long Position { get; set; }
    Property Value
    Type Description
    System.Int64
    Overrides
    System.IO.Stream.Position

    Methods

    Close()

    Closes the stream object.

    Declaration
    public override void Close()
    Overrides
    System.IO.Stream.Close()

    Flush()

    Flush data to stream, currently not implemented, all writes are imediate against the controller.

    Declaration
    public override void Flush()
    Overrides
    System.IO.Stream.Flush()

    Read(Byte[], Int32, Int32)

    Reads a sequence of bytes from the stream.

    Declaration
    public override int Read(byte[] buffer, int offset, int count)
    Parameters
    Type Name Description
    System.Byte[] buffer

    Buffer for read data.

    System.Int32 offset

    Offset in buffer.

    System.Int32 count

    Maximum number of bytes to read.

    Returns
    Type Description
    System.Int32

    Acutal number of bytes read.

    Overrides
    System.IO.Stream.Read(System.Byte[], System.Int32, System.Int32)

    Seek(Int64, SeekOrigin)

    Not supported.

    Declaration
    public override long Seek(long offset, SeekOrigin origin)
    Parameters
    Type Name Description
    System.Int64 offset

    Not supported.

    System.IO.SeekOrigin origin

    Not supported.

    Returns
    Type Description
    System.Int64

    Not supported.

    Overrides
    System.IO.Stream.Seek(System.Int64, System.IO.SeekOrigin)

    SetLength(Int64)

    Not supported.

    Declaration
    public override void SetLength(long value)
    Parameters
    Type Name Description
    System.Int64 value

    Not supported.

    Overrides
    System.IO.Stream.SetLength(System.Int64)

    Write(Byte[], Int32, Int32)

    Writes a sequence of bytes to the stream.

    Declaration
    public override void Write(byte[] buffer, int offset, int count)
    Parameters
    Type Name Description
    System.Byte[] buffer

    Buffer for write data.

    System.Int32 offset

    Offset in buffer to write.

    System.Int32 count

    Maximum number of bytes to write.

    Overrides
    System.IO.Stream.Write(System.Byte[], System.Int32, System.Int32)

    Implements

    System.IDisposable
    In This Article
    Back to top Copyright © 2024 ABB