コード例 #1
0
ファイル: mwg.File.mwgIff.cs プロジェクト: akinomyoga/mwg
 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();
 }
コード例 #2
0
ファイル: mwg.File.mwgIff.cs プロジェクト: akinomyoga/mwg
 public override void ReadFrom(mwg.File.Bytes bin)
 {
     this.name = bin.ReadString();
     this.data = bin.ReadString();
 }
コード例 #3
0
ファイル: mwg.File.mwgIff.cs プロジェクト: akinomyoga/mwg
 //TODO:暗号化・圧縮→他に圧縮暗号化クラスを作成して呼び出す
 //読込・保存
 public virtual void ReadFrom(mwg.File.Bytes bin)
 {
     this.name     = bin.ReadString();
     this.content  = bin.ReadByteArray();
     this.isOpened = false;
 }