Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrorInsufficientBytesLeft = errors.New("not enough bytes left until buffer limit to complete this operation")
)
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader interface {
io.Reader
// ReadUInt8 reads a uint16 from the underlying reader
ReadUInt8() (uint8, error)
// ReadUInt16 reads a uint16 from the underlying reader
ReadUInt16() (uint16, error)
// ReadUInt32 reads a uint32 from the underlying reader
ReadUInt32() (uint32, error)
// ReadInt16 reads a int16 from the underlying reader
ReadInt16() (int16, error)
// ReadInt32 reads a int32 from the underlying reader
ReadInt32() (int32, error)
// ReadString reads an n byte string from the underlying reader. Uses the charset.CodingSystem encoding.
// Decoders to read the string, if set.
ReadString(n uint32) (string, error)
// Skip skips the reader ahead by n bytes
Skip(n int64) error
// PushLimit sets a read limit of n bytes from the current position of the reader. Once the limit is reached,
// IsLimitExhausted will return true, and other attempts to read data from dicomio.Reader will return io.EOF.
PushLimit(n int64) error
// PopLimit removes the most recent limit set, and restores the limit before that one.
PopLimit()
// IsLimitExhausted indicates whether or not we have read up to the currently set limit position.
IsLimitExhausted() bool
// BytesLeftUntilLimit returns the number of bytes remaining until we reach the currently set limit positon.
BytesLeftUntilLimit() int64
// SetTransferSyntax sets the byte order and whether the current transfer syntax is implicit or not
SetTransferSyntax(bo binary.ByteOrder, implicit bool)
// IsImplicit returns if the currently set transfer syntax on this Reader is implicit or not.
IsImplicit() bool
// SetCodingSystem sets the charset.CodingSystem to be used when ReadString is called.
SetCodingSystem(cs charset.CodingSystem)
}
Reader provides common functionality for reading underlying DICOM data.
Click to show internal directories.
Click to hide internal directories.