internal AutoKey(AutoKeys autoKeys, string name, int localInitValue, int localStep) { this.AutoKeys = autoKeys; this.Name = name; this.LocalId = localInitValue; this.LocalStep = localStep; this.Current = localInitValue; }
internal AutoKey(AutoKeys autoKeys, ByteBuffer os) { this.AutoKeys = autoKeys; Name = os.ReadString(); LocalId = os.ReadInt(); LocalStep = os.ReadInt(); Current = os.ReadLong(); }
public int Encode0() { snapshotOfAutoKeys = AutoKeys.Encode(); int c = 0; if (null != snapshotOfAutoKeys) { ++c; } return(c); }
internal StorageSys(Application app, Database database) { DatabaseTable = database.OpenTable("_sys_"); int localInitValue = app.Config.AutoKeyLocalId; int localStep = app.Config.AutoKeyLocalStep; keyOfAutoKeys = ByteBuffer.Allocate(32); keyOfAutoKeys.WriteString("zeze.AutoKeys." + localInitValue); AutoKeys = new AutoKeys(DatabaseTable.Find(keyOfAutoKeys), localInitValue, localStep); }