GitSharp.Core.MutableObjectId.FromString C# (CSharp) Method

FromString() public method

public FromString ( byte buf, int offset ) : void
buf byte
offset int
return void
        public void FromString(byte[] buf, int offset)
        {
            FromHexString(buf, offset);
        }

Same methods

MutableObjectId::FromString ( string str ) : void

Usage Example

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();
        }
All Usage Examples Of GitSharp.Core.MutableObjectId::FromString