C# 클래스 Dicom.Network.RawPDU

Encapsulates PDU data for reading or writing
파일 보기 프로젝트 열기: fo-dicom/mdcm 1 사용 예제들

공개 메소드들

메소드 설명
MarkLength16 ( String name ) : void

Marks position to write 16-bit length value

MarkLength32 ( String name ) : void

Marks position to write 32-bit length value

RawPDU ( Stream s ) : System

Initializes new PDU reader from stream

RawPDU ( byte type ) : System

Initializes new PDU for writing

ReadByte ( String name ) : byte

Read byte from PDU

ReadBytes ( String name, int count ) : byte[]

Read bytes from PDU

ReadPDU ( ) : void

Reads PDU into memory

ReadString ( String name, int count ) : String

Reads string from PDU

ReadUInt16 ( String name ) : ushort

Read ushort from PDU

ReadUInt32 ( String name ) : uint

Reads uint from PDU

Reset ( ) : void

Reset PDU read stream

Save ( String file ) : void

Saves PDU to file

SkipBytes ( String name, int count ) : void

Skips ahead in PDU

ToString ( ) : String

Gets string describing this PDU

Write ( String name, String value ) : void

Writes string to PDU

Write ( String name, String value, int count, char pad ) : void

Writes string to PDU

Write ( String name, byte value ) : void

Writes byte to PDU

Write ( String name, byte value, int count ) : void

Writes byte to PDU multiple times

Write ( String name, uint value ) : void

Writes uint to PDU

Write ( String name, ushort value ) : void

Writes ushort to PDU

WriteLength16 ( ) : void

Writes 16-bit length to top length marker

WriteLength32 ( ) : void

Writes 32-bit length to top length marker

WritePDU ( Stream s ) : void

Writes PDU to stream

비공개 메소드들

메소드 설명
CheckOffset ( int bytes, String name ) : void
ToCharArray ( String s, int l, char p ) : char[]

메소드 상세

MarkLength16() 공개 메소드

Marks position to write 16-bit length value
public MarkLength16 ( String name ) : void
name String Field name
리턴 void

MarkLength32() 공개 메소드

Marks position to write 32-bit length value
public MarkLength32 ( String name ) : void
name String Field name
리턴 void

RawPDU() 공개 메소드

Initializes new PDU reader from stream
public RawPDU ( Stream s ) : System
s Stream Input stream
리턴 System

RawPDU() 공개 메소드

Initializes new PDU for writing
public RawPDU ( byte type ) : System
type byte Type of PDU
리턴 System

ReadByte() 공개 메소드

Read byte from PDU
public ReadByte ( String name ) : byte
name String Name of field
리턴 byte

ReadBytes() 공개 메소드

Read bytes from PDU
public ReadBytes ( String name, int count ) : byte[]
name String Name of field
count int Number of bytes to read
리턴 byte[]

ReadPDU() 공개 메소드

Reads PDU into memory
public ReadPDU ( ) : void
리턴 void

ReadString() 공개 메소드

Reads string from PDU
public ReadString ( String name, int count ) : String
name String Name of field
count int Length of string
리턴 String

ReadUInt16() 공개 메소드

Read ushort from PDU
public ReadUInt16 ( String name ) : ushort
name String Name of field
리턴 ushort

ReadUInt32() 공개 메소드

Reads uint from PDU
public ReadUInt32 ( String name ) : uint
name String Name of field
리턴 uint

Reset() 공개 메소드

Reset PDU read stream
public Reset ( ) : void
리턴 void

Save() 공개 메소드

Saves PDU to file
public Save ( String file ) : void
file String Filename
리턴 void

SkipBytes() 공개 메소드

Skips ahead in PDU
public SkipBytes ( String name, int count ) : void
name String Name of field
count int Number of bytes to skip
리턴 void

ToString() 공개 메소드

Gets string describing this PDU
public ToString ( ) : String
리턴 String

Write() 공개 메소드

Writes string to PDU
public Write ( String name, String value ) : void
name String Field name
value String Field value
리턴 void

Write() 공개 메소드

Writes string to PDU
public Write ( String name, String value, int count, char pad ) : void
name String Field name
value String Field value
count int Number of characters to write
pad char Padding character
리턴 void

Write() 공개 메소드

Writes byte to PDU
public Write ( String name, byte value ) : void
name String Field name
value byte Field value
리턴 void

Write() 공개 메소드

Writes byte to PDU multiple times
public Write ( String name, byte value, int count ) : void
name String Field name
value byte Field value
count int Number of times to write PDU value
리턴 void

Write() 공개 메소드

Writes uint to PDU
public Write ( String name, uint value ) : void
name String Field name
value uint Field value
리턴 void

Write() 공개 메소드

Writes ushort to PDU
public Write ( String name, ushort value ) : void
name String Field name
value ushort Field value
리턴 void

WriteLength16() 공개 메소드

Writes 16-bit length to top length marker
public WriteLength16 ( ) : void
리턴 void

WriteLength32() 공개 메소드

Writes 32-bit length to top length marker
public WriteLength32 ( ) : void
리턴 void

WritePDU() 공개 메소드

Writes PDU to stream
public WritePDU ( Stream s ) : void
s Stream Output stream
리턴 void