예제 #1
0
        static ITaggedData Create(short tag, byte[] data, int offset, int count)
        {
            ITaggedData result;

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

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

            default:
                result = new RawTaggedData(tag);
                break;
            }
            result.SetData(data, offset, count);
            return(result);
        }
예제 #2
0
		static ITaggedData Create(short tag, byte[] data, int offset, int count)
		{
			ITaggedData result;
			switch ( tag )
			{
				case 0x000A:
					result = new NTTaggedData();
					break;
				case 0x5455:
					result = new ExtendedUnixData();
					break;
				default:
					result = new RawTaggedData(tag);
					break;
			}
			result.SetData(data, offset, count);
			return result;
		}