Inheritance: AnyObjectId
Ejemplo n.º 1
0
        public void testReadACK_ACKcontinue1()
        {
            ObjectId expid = ObjectId.FromString("fcfcfb1fd94829c1a1704f894fc111d14770d34e");
            MutableObjectId actid = new MutableObjectId();
            actid.FromString(expid.Name);

            init("003aACK fcfcfb1fd94829c1a1704f894fc111d14770d34e continue\n");
            Assert.AreEqual(PacketLineIn.AckNackResult.ACK_CONTINUE, pckIn.readACK(actid));
            Assert.IsTrue(actid.Equals(expid));
            assertEOF();
        }
Ejemplo n.º 2
0
 protected override MutableObjectId IdBufferBuilder(MutableObjectId idBuffer)
 {
     idBuffer.FromRaw(_index._idxdata[_levelOne], _levelTwo - AnyObjectId.ObjectIdLength);
     return(idBuffer);
 }
Ejemplo n.º 3
0
 protected override MutableObjectId IdBufferBuilder(MutableObjectId idBuffer)
 {
     idBuffer.FromRaw(_index._names[_levelOne], _levelTwo - AnyObjectId.ObjectIdLength / 4);
     return idBuffer;
 }
Ejemplo n.º 4
0
 protected override MutableObjectId IdBufferBuilder(MutableObjectId idBuffer)
 {
     idBuffer.FromRaw(_index._names[_levelOne], _levelTwo - Constants.OBJECT_ID_LENGTH / 4);
     return(idBuffer);
 }
Ejemplo n.º 5
0
        public void testReadACK_ACKready1()
        {
            ObjectId expid = ObjectId
                   .FromString("fcfcfb1fd94829c1a1704f894fc111d14770d34e");
            MutableObjectId actid = new MutableObjectId();

            init("0037ACK fcfcfb1fd94829c1a1704f894fc111d14770d34e ready\n");
            Assert.AreEqual(PacketLineIn.AckNackResult.ACK_READY, pckIn.readACK(actid));
            Assert.IsTrue(actid.Equals(expid));
            assertEOF();
        }
Ejemplo n.º 6
0
 protected abstract MutableObjectId IdBufferBuilder(MutableObjectId idBuffer);
Ejemplo n.º 7
0
 public MutableEntry(MutableObjectId idBuffer)
 {
     _idBuffer = idBuffer;
 }
Ejemplo n.º 8
0
 protected override MutableObjectId IdBufferBuilder(MutableObjectId idBuffer)
 {
     idBuffer.FromRaw(_index._idxdata[_levelOne], _levelTwo - Constants.OBJECT_ID_LENGTH);
     return idBuffer;
 }