Write() public method

public Write ( int key, byte[]>.Dictionary obj ) : void
key int
obj byte[]>.Dictionary
return void
Esempio n. 1
0
        public void Save(FileSystemDatabase fsd)
        {
            var toSave = new Dictionary <string, byte[]> ();

            toSave [ShovelVmStateName]    = this.ShovelVmState;
            toSave [ShovelVmBytecodeName] = this.ShovelVmBytecode;
            toSave [PageContentName]      = Encoding.UTF8.GetBytes(this.PageContent.ToString());
            toSave [ReadStateName]        = BitConverter.GetBytes((int)this.ReadState);
            toSave [ShovelVmSourcesName]  = Encoding.UTF8.GetBytes(this.ShovelVmSources);
            fsd.Write(this.Id, toSave);
        }
Esempio n. 2
0
 public void Save (FileSystemDatabase fsd)
 {
     var toSave = new Dictionary<string, byte[]> ();
     toSave [ShovelVmStateName] = this.ShovelVmState;
     toSave [ShovelVmBytecodeName] = this.ShovelVmBytecode;
     toSave [PageContentName] = Encoding.UTF8.GetBytes (this.PageContent.ToString ());
     toSave [ReadStateName] = BitConverter.GetBytes ((int)this.ReadState);
     toSave [ShovelVmSourcesName] = Encoding.UTF8.GetBytes (this.ShovelVmSources);           
     fsd.Write (this.Id, toSave);
 }