コード例 #1
0
 protected SaveFile(int size = 0)
 {
     Data     = size == 0 ? Array.Empty <byte>() : new byte[size];
     State    = new SaveFileState(Array.Empty <byte>(), false);
     Metadata = new SaveFileMetadata(this);
 }
コード例 #2
0
 protected SaveFile(byte[] data, byte[] bak, bool exportable = true)
 {
     Data     = data;
     State    = new SaveFileState(bak, exportable);
     Metadata = new SaveFileMetadata(this);
 }