public override void Read(BinaryReader reader) { base.Read(reader); byte[] body = reader.ReadBytes(this.HeaderOne - 12); Index = (PhotoDataSetIndex)ToInt32(body, 0); recordPadding = body.Length - 4; switch (Index) { case PhotoDataSetIndex.ImageList: Data = new ImageListRecord(IsBE); Data.Read(reader); break; case PhotoDataSetIndex.AlbumList: Data = new AlbumListRecord(IsBE); Data.Read(reader); break; case PhotoDataSetIndex.FileList: Data = new FileListRecord(IsBE); Data.Read(reader); break; default: break; } }
protected void SaveChild(PhotoDbRecord record, out byte[] data, out int length) { List <PhotoDbRecord> list = new List <PhotoDbRecord> (); list.Add(record); SaveChildren(list, out data, out length); }
public PhotoDataSetRecord(bool isbe, PhotoDbRecord data, PhotoDataSetIndex index) : base(isbe) { this.Name = "mhsd"; recordPadding = 80; this.Data = data; this.Index = index; }