21#ifndef PACS_ENCODING_IMPLICIT_VR_CODEC_HPP
22#define PACS_ENCODING_IMPLICIT_VR_CODEC_HPP
70 [[nodiscard]]
static std::vector<uint8_t>
encode(
79 std::span<const uint8_t> data);
102 std::span<const uint8_t>& data);
115 std::span<const uint8_t>& data);
118 std::span<const uint8_t>& data);
Encoder/decoder for Implicit VR Little Endian transfer syntax.
static result< core::dicom_element > decode_element(std::span< const uint8_t > &data)
Decode a single element from bytes.
static result< core::dicom_dataset > decode_sequence_item(std::span< const uint8_t > &data)
static result< core::dicom_element > decode_undefined_length(core::dicom_tag tag, vr_type vr, std::span< const uint8_t > &data)
static void encode_sequence_item(std::vector< uint8_t > &buffer, const core::dicom_dataset &item)
static std::vector< uint8_t > encode_element(const core::dicom_element &element)
Encode a single element to bytes.
static result< core::dicom_dataset > decode(std::span< const uint8_t > data)
Decode bytes to a dataset using Implicit VR Little Endian.
static void encode_sequence(std::vector< uint8_t > &buffer, const core::dicom_element &element)
static std::vector< uint8_t > encode(const core::dicom_dataset &dataset)
Encode a dataset to bytes using Implicit VR Little Endian.
DICOM Dataset - ordered collection of Data Elements.
DICOM Data Element representation (Tag, VR, Value)
vr_type
DICOM Value Representation (VR) types.
Result<T> type aliases and helpers for PACS system.