Show / Hide Table of Contents
View Source

Class NetworkBinaryReader

Inheritance
System.Object
NetworkBinaryReader
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace:EvilDICOM.Network.Readers
Assembly:EvilDICOM.dll
Syntax
public class NetworkBinaryReader

Constructors

View Source

NetworkBinaryReader(BufferedStream)

Constructs a DICOM binary reader from a network stream

Declaration
public NetworkBinaryReader(BufferedStream stream)
Parameters
Type Name Description
System.IO.BufferedStream stream

Fields

View Source

_binaryReader

Declaration
protected BinaryReader _binaryReader
Field Value
Type Description
System.IO.BinaryReader

Methods

View Source

GetSubStream(Int32)

Creates a new stream that is trimmed to the specification length.

Declaration
public DICOMBinaryReader GetSubStream(int substreamLength)
Parameters
Type Name Description
System.Int32 substreamLength

the number of bytes to include in the new stream (starting from the current position)

Returns
Type Description
DICOMBinaryReader
View Source

ReadBytes(Int32)

Reads the specified number of bytes

Declaration
public byte[] ReadBytes(int count)
Parameters
Type Name Description
System.Int32 count

the number of bytes to be read

Returns
Type Description
System.Byte[]

the read bytes

View Source

ReadChars(Int32)

Reads the specified number of chars

Declaration
public char[] ReadChars(int count)
Parameters
Type Name Description
System.Int32 count

the number of chars to be read

Returns
Type Description
System.Char[]

the read chars

View Source

ReadString(Int32)

Reads the specified number of chars and converts to a string

Declaration
public string ReadString(int length)
Parameters
Type Name Description
System.Int32 length
Returns
Type Description
System.String

the read chars

View Source

Skip(Int32)

Declaration
public NetworkBinaryReader Skip(int count)
Parameters
Type Name Description
System.Int32 count
Returns
Type Description
NetworkBinaryReader
View Source

Take(Int32)

Reads the specified number of bytes (shorthand for ReadBytes method).

Declaration
public byte[] Take(int count)
Parameters
Type Name Description
System.Int32 count

the number of bytes to be read

Returns
Type Description
System.Byte[]

the read bytes

Back to top Copyright © 2015-2016 Microsoft
Generated by DocFX