Class DataReader
Reads the byte data from a DICOM element
Inheritance
System.Object
DataReader
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.Core.IO.Reading
Assembly:EvilDICOM.dll
Syntax
public class DataReader
Methods
View SourceReadBigEndian(Int32, DICOMBinaryReader)
Reads the data from an element encoded in big endian byte order
Declaration
public static byte[] ReadBigEndian(int lengthToRead, DICOMBinaryReader dr)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | lengthToRead | the length of the data |
| DICOMBinaryReader | dr | the binary reader which is reading the DICOM object |
Returns
| Type | Description |
|---|---|
| System.Byte[] | the data from this element |
ReadLittleEndian(Int32, DICOMBinaryReader, TransferSyntax)
Reads the data from an element encoded in little endian byte order
Declaration
public static byte[] ReadLittleEndian(int lengthToRead, DICOMBinaryReader dr, TransferSyntax syntax)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | lengthToRead | the length of the data |
| DICOMBinaryReader | dr | the binary reader which is reading the DICOM object |
| TransferSyntax | syntax |
Returns
| Type | Description |
|---|---|
| System.Byte[] | the data from this element |