コード例 #1
0
		public override void Read (BinaryReader reader)
		{
			base.Read (reader);
			if (this.Name != "mhba")
				throw new ApplicationException ("unexpected record type: " + this.Name);

			byte [] body = reader.ReadBytes (this.HeaderOne - 12);

			unknownOne = BitConverter.ToInt32 (body, 0);
			ItemCount = BitConverter.ToInt32 (body, 4);
			unknownTwo = BitConverter.ToInt32 (body, 8); //

			if (unknownOne != 1)
				throw new System.Exception ("Unexpected title count or something, figure it out");

			TitleRecord = new ImageDataObjectRecord ();
			TitleRecord.Read (reader);

			Items = new ArrayList ();
			for (int i = 0; i < ItemCount; i++) {
				AlbumItemRecord rec = new AlbumItemRecord ();
				rec.Read (reader);
				Items.Add (rec);
			}
		}
コード例 #2
0
		public override void Read (BinaryReader reader) {
			
			base.Read (reader);
			if (this.Name != "mhii")
				throw new ApplicationException ("Unexpected name: " + this.Name);

			byte [] body = reader.ReadBytes (this.HeaderOne - 12);
			
			ChildCount = BitConverter.ToInt32 (body, 0);
			
			Id = BitConverter.ToInt32 (body, 4);
			ImageId = BitConverter.ToInt32 (body, 8);

			unknownFour = BitConverter.ToInt32 (body, 12);
			unknownFive = BitConverter.ToInt32 (body, 16);
			unknownSix = BitConverter.ToInt32 (body, 20);
			unknownSeven = BitConverter.ToInt32 (body, 24);
			unknownFive = BitConverter.ToInt32 (body, 28);

			Size = BitConverter.ToInt32 (body, 32);

			Versions = new ArrayList ();
			for (int i = 0; i < ChildCount; i++) {
				ImageDataObjectRecord rec = new ImageDataObjectRecord ();
				rec.Read (reader);
				Versions.Add (rec);
			}
		}
コード例 #3
0
        public override void Read(BinaryReader reader)
        {
            base.Read(reader);
            if (this.Name != "mhba")
            {
                throw new ApplicationException("unexpected record type: " + this.Name);
            }

            byte [] body = reader.ReadBytes(this.HeaderOne - 12);

            unknownOne = BitConverter.ToInt32(body, 0);
            ItemCount  = BitConverter.ToInt32(body, 4);
            unknownTwo = BitConverter.ToInt32(body, 8);              //

            if (unknownOne != 1)
            {
                throw new System.Exception("Unexpected title count or something, figure it out");
            }

            TitleRecord = new ImageDataObjectRecord();
            TitleRecord.Read(reader);

            Items = new ArrayList();
            for (int i = 0; i < ItemCount; i++)
            {
                AlbumItemRecord rec = new AlbumItemRecord();
                rec.Read(reader);
                Items.Add(rec);
            }
        }
コード例 #4
0
        public override void Read(BinaryReader reader)
        {
            base.Read(reader);
            if (this.Name != "mhii")
            {
                throw new ApplicationException("Unexpected name: " + this.Name);
            }

            byte [] body = reader.ReadBytes(this.HeaderOne - 12);

            ChildCount = BitConverter.ToInt32(body, 0);

            Id      = BitConverter.ToInt32(body, 4);
            ImageId = BitConverter.ToInt32(body, 8);

            unknownFour  = BitConverter.ToInt32(body, 12);
            unknownFive  = BitConverter.ToInt32(body, 16);
            unknownSix   = BitConverter.ToInt32(body, 20);
            unknownSeven = BitConverter.ToInt32(body, 24);
            unknownFive  = BitConverter.ToInt32(body, 28);

            Size = BitConverter.ToInt32(body, 32);

            Versions = new ArrayList();
            for (int i = 0; i < ChildCount; i++)
            {
                ImageDataObjectRecord rec = new ImageDataObjectRecord();
                rec.Read(reader);
                Versions.Add(rec);
            }
        }
コード例 #5
0
        public override void Read(BinaryReader reader)
        {
            base.Read(reader);

            if (this.Name != "mhni")
            {
                throw new ApplicationException("Unexpected header name: " + this.Name);
            }

            byte [] body = reader.ReadBytes(this.HeaderOne - 12);
            ChildCount    = BitConverter.ToInt32(body, 0);
            CorrelationID = BitConverter.ToInt32(body, 4);
            ThumbPosition = BitConverter.ToInt32(body, 8);
            ThumbSize     = BitConverter.ToInt32(body, 12);
            unknownThree  = BitConverter.ToInt32(body, 16);
            Width         = BitConverter.ToUInt16(body, 20);
            Height        = BitConverter.ToUInt16(body, 22);

            Record = new ImageDataObjectRecord();
            Record.Read(reader);
        }
コード例 #6
0
		public override void Read (BinaryReader reader) {
			base.Read (reader);
			
			if (this.Name != "mhni")
				throw new ApplicationException ("Unexpected header name: " + this.Name);

			byte [] body = reader.ReadBytes (this.HeaderOne - 12);
			ChildCount = BitConverter.ToInt32 (body, 0);
			CorrelationID = BitConverter.ToInt32 (body, 4);
			ThumbPosition = BitConverter.ToInt32 (body, 8);
			ThumbSize = BitConverter.ToInt32 (body, 12);
			unknownThree = BitConverter.ToInt32 (body, 16);
			Width = BitConverter.ToUInt16 (body, 20);
			Height = BitConverter.ToUInt16 (body, 22);
			
			Record = new ImageDataObjectRecord ();
			Record.Read (reader);
		}