Exemplo n.º 1
0
        ITaggedData Create(short tag, byte[] data, int offset, int count)
        {
            ITaggedData result = null;

            switch (tag)
            {
            case 0x000A:
                result = new NTTaggedData();
                break;

            case 0x5455:
                result = new ExtendedUnixData();
                break;

            default:
                result = new RawTaggedData(tag);
                break;
            }
            result.SetData(data_, readValueStart_, readValueLength_);
            return(result);
        }
		ITaggedData Create(short tag, byte[] data, int offset, int count)
		{
			ITaggedData result = null;
			switch ( tag )
			{
				case 0x000A:
					result = new NTTaggedData();
					break;
				case 0x5455:
					result = new ExtendedUnixData();
					break;
				default:
					result = new RawTaggedData(tag);
					break;
			}
			result.SetData(data_, readValueStart_, readValueLength_);
			return result;
		}