Esempio n. 1
0
            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());
            }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 public void Encode(ByteArrayOutputStream os, IObjectInfo info)
 {
     PrimitiveCodec.WriteLong(os, info.GetInternalID());
 }
Esempio n. 4
0
 /// <exception cref="System.IO.IOException"></exception>
 protected virtual void WriteByteArray(ByteArrayOutputStream os, byte[] signaturePart
                                       )
 {
     PrimitiveCodec.WriteLong(os, signaturePart.Length);
     os.Write(signaturePart);
 }