public int EvaluatetRecursionDepth(Stream source) { int result; var hr = _rdcLibrary.ComputeDefaultRecursionDepth(source.Length, out result); if (hr != 0) { throw new RdcException("Failed to compute the recursion depth.", hr); } return result; }