public void ReadFrom(mwg.File.Bytes bin) { //bin.R(ref this.type).R(ref this.version).R(ref this.name).R(ref this.made); this.type = bin.ReadFourcc(); this.version = bin.ReadUInt32(); this.name = bin.ReadString(); this.made = new RWDateTime(bin); this.lastModified = new RWDateTime(bin); this.annex = bin.ReadString(); }
public override void ReadFrom(mwg.File.Bytes bin) { this.name = bin.ReadString(); this.data = bin.ReadString(); }
//TODO:暗号化・圧縮→他に圧縮暗号化クラスを作成して呼び出す //読込・保存 public virtual void ReadFrom(mwg.File.Bytes bin) { this.name = bin.ReadString(); this.content = bin.ReadByteArray(); this.isOpened = false; }