pdu

package
v0.0.0-...-d2ef1e0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2016 License: MPL-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package pdu contains DICOM PDU structures

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbstractSyntax

func AbstractSyntax(name string) []byte

AbstractSyntax returns a byte slice with abstract syntax item

func AppContext

func AppContext(name string) []byte

AppContext returns a byte slice with app context item

func CFindRQ

func CFindRQ(sopclass, level string) []byte

CFindRQ ...

func PutIntToByteSize4

func PutIntToByteSize4(b *[4]byte, v uint32)

BigEndian Int to [4]byte

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

type AReleaseRequest struct {
	PDUType   byte
	Blank     [1]byte
	PDULenght [4]byte
	Request   [4]byte
}

AReleaseRequest A-Release request

func (*AReleaseRequest) Len

func (e *AReleaseRequest) Len()

Len get the len of AReleaseRequest

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) Len

func (e *AppContextItem) Len()

Len get the len of AppContextItem

func (*AppContextItem) ToBytes

func (e *AppContextItem) ToBytes() []byte

ToBytes converts AppContextItem into []byte

type CFINDRQDATA

type CFINDRQDATA struct {
	PDU PDATATFPDU
}

CFINDRQDATA C-FIND-RQ DATA

type PDATATFPDU

type PDATATFPDU struct {
	PDUType   byte
	Blank     [1]byte
	PDULenght [4]byte
	Content   []PDVItem
}

PDATATFPDU P-DATA-TF PDU

func (*PDATATFPDU) Len

func (e *PDATATFPDU) Len()

Len get the len of PDATATFPDU

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

func (*PDVItem) Len

func (e *PDVItem) Len() int

Len get the len of PDVItem

func (*PDVItem) ToBytes

func (e *PDVItem) ToBytes() []byte

ToBytes converts PDVItem into []byte

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL