示例#1
0
 public override void Serialize(System.IO.Stream stream, EncryptedStorageManager encryptedStorageManager)
 {
     using (System.IO.BinaryWriter BW = new System.IO.BinaryWriter(stream)) {
         BW.Write(ObjectID);
         BW.Write(name);
         BW.Write(((Frontend)FrontendInstanceBase.Frontend).ValueDeserializer.TypeToID(type));
         BW.Write(allowNull);
         BW.Write(length);
     }
 }
示例#2
0
 public override void Serialize(Stream stream, EncryptedStorageManager encryptedStorageManager)
 {
     using (BinaryWriter BW = new BinaryWriter(stream)) {
         BW.Write(columns.Length);
         for (int n = 0; n != columns.Length; n++)
         {
             BW.Write(columns [n].ObjectID);
         }
     }
 }
示例#3
0
文件: Database.cs 项目: vebin/BD2
 public Database(string basePath, UserStorageBase userStorage)
 {
     if (basePath == null)
         throw new ArgumentNullException ("basePath");
     if (userStorage == null)
         throw new ArgumentNullException ("userStorage");
     this.basePath = basePath;
     this.userStorage = userStorage;
     this.frontends = new SortedDictionary<string, FrontendBase> ();
     encryptedStorageManager = new EncryptedStorageManager (userStorage);
 }
示例#4
0
 public override void Serialize(System.IO.Stream stream, EncryptedStorageManager encryptedStorageManager)
 {
     using (System.IO.BinaryWriter BW = new System.IO.BinaryWriter(stream)) {
         BW.Write(ID);
         BW.Write(Table.ObjectID, 0, 32);
         BW.Write((byte)columnSets.Count);
         foreach (var columnSet in columnSets)
         {
             BW.Write(columnSet.Value.ObjectID, 0, 32);
         }
         for (int index = 0; index != columnSets.Count; index++)
         {
             byte[] buf = ColumnSets [index].SerializeObjects(data [index]);
             BW.Write(buf.Length);
             BW.Write(buf);
         }
     }
 }
示例#5
0
 public override void Serialize(System.IO.Stream stream, EncryptedStorageManager encryptedStorageManager)
 {
     using (System.IO.BinaryWriter BW = new System.IO.BinaryWriter(stream)) {
         BW.Write(name);
     }
 }
示例#6
0
文件: Table.cs 项目: vebin/BD2
 public override void Serialize(System.IO.Stream stream, EncryptedStorageManager encryptedStorageManager)
 {
     using (System.IO.BinaryWriter BW = new System.IO.BinaryWriter (stream)) {
         BW.Write (name);
     }
 }
示例#7
0
文件: Serializable.cs 项目: vebin/BD2
 public abstract void Serialize(Stream stream, EncryptedStorageManager encryptedStorageManager);
示例#8
0
 public override void Serialize(Stream stream, EncryptedStorageManager encryptedStorageManager)
 {
     using (BinaryWriter BW = new BinaryWriter(stream)) {
         BW.Write(row.BaseDataObject.ObjectID);
     }
 }
示例#9
0
文件: RowDrop.cs 项目: vebin/BD2
 public override void Serialize(Stream stream, EncryptedStorageManager encryptedStorageManager)
 {
     using (BinaryWriter BW = new BinaryWriter (stream)) {
         BW.Write (ReplacingIDs.Length);
         foreach (var rid in ReplacingIDs)
             BW.Write (rid);
     }
 }
示例#10
0
文件: Column.cs 项目: vebin/BD2
 public override void Serialize(System.IO.Stream stream, EncryptedStorageManager encryptedStorageManager)
 {
     using (System.IO.BinaryWriter BW = new System.IO.BinaryWriter (stream)) {
         BW.Write (name);
         Frontend f = (Frontend)FrontendBase;
         BW.Write (f.ValueSerializer.TypeToID (type));
         BW.Write (allowNull);
         BW.Write (length);
     }
 }