protected Db4objects.Db4o.Internal.Transaction CheckParentTransaction(Db4objects.Db4o.Internal.Transaction a_trans, ByteArrayBuffer reader) { if (reader.ReadByte() == Const4.SystemTrans && a_trans.ParentTransaction() != null) { return(a_trans.ParentTransaction()); } return(a_trans); }
public Db4objects.Db4o.CS.Internal.Messages.MsgD GetWriterForLength(Transaction trans , int length) { Db4objects.Db4o.CS.Internal.Messages.MsgD message = (Db4objects.Db4o.CS.Internal.Messages.MsgD )PublicClone(); message.SetTransaction(trans); message._payLoad = new StatefulBuffer(trans, length + Const4.MessageLength); message.WriteInt(_msgID); message.WriteInt(length); if (trans.ParentTransaction() == null) { message._payLoad.WriteByte(Const4.SystemTrans); } else { message._payLoad.WriteByte(Const4.UserTrans); } return message; }
protected Transaction CheckParentTransaction(Transaction a_trans, ByteArrayBuffer reader) { if (reader.ReadByte() == Const4.SystemTrans && a_trans.ParentTransaction() != null) { return a_trans.ParentTransaction(); } return a_trans; }