public FromString ( byte buf, int offset ) : void | ||
buf | byte | |
offset | int | |
return | void |
public void FromString(byte[] buf, int offset)
{
FromHexString(buf, offset);
}
MutableObjectId::FromString ( string str ) : void |
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(); }