C# Class Dicom.IO.FileSegment

File Segment
Afficher le fichier Open project: fo-dicom/mdcm Class Usage Examples

Méthodes publiques

Méthode Description
FileSegment ( string fileName, long position, long length ) : System

Initializes a new instance of the FileSegment class.

GetBuffer ( ) : ByteBuffer

Gets a ByteBuffer containing this segment's data.

GetData ( ) : byte[]

Gets the data for this segment.

OpenStream ( ) : FileStream

Opens a readonly stream for this segment.

WriteTo ( Stream s ) : void

Copies this segment to a stream.

Method Details

FileSegment() public méthode

Initializes a new instance of the FileSegment class.
public FileSegment ( string fileName, long position, long length ) : System
fileName string Name of the file.
position long The position.
length long The length.
Résultat System

GetBuffer() public méthode

Gets a ByteBuffer containing this segment's data.
public GetBuffer ( ) : ByteBuffer
Résultat ByteBuffer

GetData() public méthode

Gets the data for this segment.
public GetData ( ) : byte[]
Résultat byte[]

OpenStream() public méthode

Opens a readonly stream for this segment.
public OpenStream ( ) : FileStream
Résultat System.IO.FileStream

WriteTo() public méthode

Copies this segment to a stream.
public WriteTo ( Stream s ) : void
s Stream Target stream.
Résultat void