Пример #1
0
        protected override void StoreData()
        {
            var memoryStream        = new MemoryStream();
            var binaryReverseWriter = new BinaryReverseWriter(memoryStream);

            foreach (var text in ChannelNames)
            {
                binaryReverseWriter.Write((byte)text.Length);
                binaryReverseWriter.Write(text.ToCharArray());
            }
            binaryReverseWriter.Close();
            memoryStream.Close();
            Data = memoryStream.ToArray();
        }
Пример #2
0
        protected override void StoreData()
        {
            var memoryStream        = new MemoryStream();
            var binaryReverseWriter = new BinaryReverseWriter(memoryStream);

            binaryReverseWriter.Write(HRes);
            binaryReverseWriter.Write((int)HResUnit);
            binaryReverseWriter.Write((short)WidthUnit);
            binaryReverseWriter.Write(VRes);
            binaryReverseWriter.Write((int)VResUnit);
            binaryReverseWriter.Write((short)HeightUnit);
            binaryReverseWriter.Close();
            memoryStream.Close();
            Data = memoryStream.ToArray();
        }
Пример #3
0
		protected override void StoreData()
		{
			MemoryStream memoryStream = new MemoryStream();
			BinaryReverseWriter reverseWriter = new BinaryReverseWriter(memoryStream);

			foreach (String name in ChannelNames)
			{
				reverseWriter.Write((Byte)name.Length);
				reverseWriter.Write(name.ToCharArray());
			}

			reverseWriter.Close();
			memoryStream.Close();

			Data = memoryStream.ToArray();
		}
        protected override void StoreData()
        {
            MemoryStream        memoryStream  = new MemoryStream();
            BinaryReverseWriter reverseWriter = new BinaryReverseWriter(memoryStream);

            foreach (String name in ChannelNames)
            {
                reverseWriter.Write((Byte)name.Length);
                reverseWriter.Write(name.ToCharArray());
            }

            reverseWriter.Close();
            memoryStream.Close();

            Data = memoryStream.ToArray();
        }
Пример #5
0
        protected override void StoreData()
        {
            MemoryStream        memoryStream  = new MemoryStream();
            BinaryReverseWriter reverseWriter = new BinaryReverseWriter(memoryStream);

            reverseWriter.Write(HRes);
            reverseWriter.Write((Int32)HResUnit);
            reverseWriter.Write((Int16)WidthUnit);

            reverseWriter.Write(VRes);
            reverseWriter.Write((Int32)VResUnit);
            reverseWriter.Write((Int16)HeightUnit);

            reverseWriter.Close();
            memoryStream.Close();

            Data = memoryStream.ToArray();
        }
Пример #6
0
		protected override void StoreData()
		{
			MemoryStream memoryStream = new MemoryStream();
			BinaryReverseWriter reverseWriter = new BinaryReverseWriter(memoryStream);

			reverseWriter.Write(HRes);
			reverseWriter.Write((Int32)HResUnit);
			reverseWriter.Write((Int16)WidthUnit);

			reverseWriter.Write(VRes);
			reverseWriter.Write((Int32)VResUnit);
			reverseWriter.Write((Int16)HeightUnit);

			reverseWriter.Close();
			memoryStream.Close();

			Data = memoryStream.ToArray();
		}