C# Class Dicom.IO.FileSegment

File Segment
显示文件 Open project: fo-dicom/mdcm Class Usage Examples

Public Methods

Method 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 method

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.
return System

GetBuffer() public method

Gets a ByteBuffer containing this segment's data.
public GetBuffer ( ) : ByteBuffer
return ByteBuffer

GetData() public method

Gets the data for this segment.
public GetData ( ) : byte[]
return byte[]

OpenStream() public method

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

WriteTo() public method

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