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 SourceNetworkBinaryReader(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 SourceGetSubStream(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 |
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 |
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 |
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 |
Skip(Int32)
Declaration
public NetworkBinaryReader Skip(int count)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | count |
Returns
Type | Description |
---|---|
NetworkBinaryReader |
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 |