C# 클래스 Dicom.IO.FileSegment

File Segment
파일 보기 프로젝트 열기: fo-dicom/mdcm 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

FileSegment() 공개 메소드

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.
리턴 System

GetBuffer() 공개 메소드

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

GetData() 공개 메소드

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

OpenStream() 공개 메소드

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

WriteTo() 공개 메소드

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