private WriteObject ( ObjectType type, long len, Stream input, bool store ) : |
||
type | ObjectType | |
len | long | |
input | Stream | |
store | bool | |
return |
private ObjectId GenSha1(string data) { var input = new MemoryStream(data.getBytes()); var writer = new ObjectWriter(db); try { return writer.WriteObject(ObjectType.Blob, data.getBytes().Length, input, true); } catch (IOException exception) { Assert.Fail(exception.ToString()); } return null; }