Inheritance: AnyObjectId
Example #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();
        }
Example #2
0
 protected override MutableObjectId IdBufferBuilder(MutableObjectId idBuffer)
 {
     idBuffer.FromRaw(_index._idxdata[_levelOne], _levelTwo - AnyObjectId.ObjectIdLength);
     return(idBuffer);
 }
Example #3
0
 protected override MutableObjectId IdBufferBuilder(MutableObjectId idBuffer)
 {
     idBuffer.FromRaw(_index._names[_levelOne], _levelTwo - AnyObjectId.ObjectIdLength / 4);
     return idBuffer;
 }
Example #4
0
 protected override MutableObjectId IdBufferBuilder(MutableObjectId idBuffer)
 {
     idBuffer.FromRaw(_index._names[_levelOne], _levelTwo - Constants.OBJECT_ID_LENGTH / 4);
     return(idBuffer);
 }
Example #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();
        }
Example #6
0
 protected abstract MutableObjectId IdBufferBuilder(MutableObjectId idBuffer);
Example #7
0
 public MutableEntry(MutableObjectId idBuffer)
 {
     _idBuffer = idBuffer;
 }
Example #8
0
 protected override MutableObjectId IdBufferBuilder(MutableObjectId idBuffer)
 {
     idBuffer.FromRaw(_index._idxdata[_levelOne], _levelTwo - Constants.OBJECT_ID_LENGTH);
     return idBuffer;
 }