text: public virtual ObjectId ComputeId(ObjectInserter ins){if (buf != null){return ins.IdFor(Constants.OBJ_TREE, buf, 0, ptr);}long len = overflowBuffer.Length();try{return ins.IdFor(Constants.OBJ_TREE, len, overflowBuffer.OpenInputStream());}catch (IOException e){throw new RuntimeException(e);}}