public void Encode(ByteArrayOutputStream os, IObjectInfo info) { PrimitiveCodec.WriteLong(os, info.GetInternalID()); long sourceDatabaseId = ((FrozenObjectInfo)info).SourceDatabaseId(this._enclosing .Transaction()); PrimitiveCodec.WriteLong(os, sourceDatabaseId); PrimitiveCodec.WriteLong(os, ((FrozenObjectInfo)info).UuidLongPart()); PrimitiveCodec.WriteLong(os, info.GetCommitTimestamp()); }
private void EncodeObjectInfoCollection(ByteArrayOutputStream os, IObjectInfoCollection collection, MCommittedInfo.IObjectInfoEncoder encoder) { IEnumerator iter = collection.GetEnumerator(); while (iter.MoveNext()) { IObjectInfo obj = (IObjectInfo)iter.Current; encoder.Encode(os, obj); } PrimitiveCodec.WriteLong(os, -1); }
public void Encode(ByteArrayOutputStream os, IObjectInfo info) { PrimitiveCodec.WriteLong(os, info.GetInternalID()); }
/// <exception cref="System.IO.IOException"></exception> protected virtual void WriteByteArray(ByteArrayOutputStream os, byte[] signaturePart ) { PrimitiveCodec.WriteLong(os, signaturePart.Length); os.Write(signaturePart); }