Documentation ¶
Overview ¶
Package pdu contains DICOM PDU structures
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AbstractSyntax ¶
AbstractSyntax returns a byte slice with abstract syntax item
func AppContext ¶
AppContext returns a byte slice with app context item
Types ¶
type AAssociateRequest ¶
type AAssociateRequest struct { PDUType byte Blank [1]byte PDULenght [4]byte ProtocolVersion [2]byte Blank2 [2]byte CalledAE [16]byte CallingAE [16]byte Blank3 [32]byte Content []byte }
AAssociateRequest A-Associate request
func (*AAssociateRequest) Len ¶
func (e *AAssociateRequest) Len()
Len get the len of AAssociateRequest
func (*AAssociateRequest) ToBytes ¶
func (e *AAssociateRequest) ToBytes() []byte
ToBytes converts AAssociateRequest into []byte
type AReleaseRequest ¶
AReleaseRequest A-Release request
func (*AReleaseRequest) ToBytes ¶
func (e *AReleaseRequest) ToBytes() []byte
ToBytes converts AReleaseRequest into []byte
type AbstractSyntaxItem ¶
type AbstractSyntaxItem struct { ItemType byte Blank [1]byte Lenght [2]byte AbstractSyntax []byte // Only One in RQ, not present in AC <= 64 bytes }
AbstractSyntaxItem Abstract Syntax Item
func (*AbstractSyntaxItem) Len ¶
func (e *AbstractSyntaxItem) Len()
Len get the len of AbstractSyntaxItem
func (*AbstractSyntaxItem) ToBytes ¶
func (e *AbstractSyntaxItem) ToBytes() []byte
ToBytes converts AbstractSyntaxItem into []byte
type AppContextItem ¶
type AppContextItem struct { ItemType byte Blank [1]byte Lenght [2]byte AppContextName []byte // Only One <= 64 bytes }
AppContextItem Application Context Item
func (*AppContextItem) ToBytes ¶
func (e *AppContextItem) ToBytes() []byte
ToBytes converts AppContextItem into []byte
type PDATATFPDU ¶
PDATATFPDU P-DATA-TF PDU
func (*PDATATFPDU) ToBytes ¶
func (e *PDATATFPDU) ToBytes() []byte
ToBytes converts PDATATFPDU into []byte
type PDVItem ¶
type PDVItem struct { Lenght [4]byte PresContextID byte // Odd Integers between 1 and 255 Context byte // Abstract syntax ID to use Flag byte // Message Control Header // 0 - Message Data set Information // 1 - Message Command Information // 0-1 - Not last fragment // 2-3 - Last fragment Content []byte // Message, Command or Data. Even bytes only }
PDVItem Presentation Data Value Item