Esempio n. 1
0
        private static ITaggedData Create(short tag, byte[] data, int offset, int count)
        {
            ITaggedData data2;

            switch (tag)
            {
            case 10:
                data2 = new NTTaggedData();
                break;

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

            default:
                data2 = new RawTaggedData(tag);
                break;
            }
            data2.SetData(data, offset, count);
            return(data2);
        }
Esempio n. 2
0
        private static ITaggedData Create(short tag, byte[] data, int offset, int count)
        {
            ITaggedData data2;
            switch (tag)
            {
                case 10:
                    data2 = new NTTaggedData();
                    break;

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

                default:
                    data2 = new RawTaggedData(tag);
                    break;
            }
            data2.SetData(data, offset, count);
            return data2;
        }
Esempio n. 3
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;
		}