private static int CalcMaxEstimate(int streamSizeBytes) { uint num = 0u; num += 30; num = NetStream.PredictStreamAdvance((uint)streamSizeBytes, num); num = NetStream.PredictStreamAdvance(0u, num); return((int)(num + 7 >> 3)); }