/*
 * SDK Pullenti Unitext, version 4.33, fabruary 2026. Copyright (c) 2013-2026, Pullenti. All rights reserved. 
 * Non-Commercial Freeware and Commercial Software. 
 * This class is generated using the converter Unisharping (www.unisharping.ru) from Pullenti C# project. 
 * The latest version of the code is available on the site www.pullenti.ru
 */

package com.pullenti.unitext.internal.zip;

// A raw binary tagged value
public class RawTaggedData implements ITaggedData {

    public RawTaggedData(short tag) {
        _tag = tag;
    }

    @Override
    public short getTagID() {
        return _tag;
    }

    public short setTagID(short value) {
        _tag = value;
        return value;
    }


    @Override
    public void setData(byte[] data, int offset, int count) {
        try {
            if (data == null) 
                throw new IllegalArgumentException("data");
            m_Data = new byte[count];
            for(int iii = 0; iii < (count); iii++) m_Data[(0) + iii] = data[(offset) + iii];
        } catch (Exception ex123) {
        }
    }

    @Override
    public byte[] getData() {
        return m_Data;
    }

    public byte[] get_Data() {
        return m_Data;
    }

    public byte[] set_Data(byte[] value) {
        m_Data = value;
        return value;
    }


    private short _tag;

    private byte[] m_Data;
    public RawTaggedData() {
    }
}
