# < Summary

Information

Class: | Renci.SshNet.Security.Org.BouncyCastle.Utilities.Integers
Assembly: | Renci.SshNet
File(s): | \home\appveyor\projects\ssh-net\src\Renci.SshNet\Security\BouncyCastle\util\Integers.cs

Line coverage
0%

Covered lines: | 0
Uncovered lines: | 12
Coverable lines: | 12
Total lines: | 27
Line coverage: | 0%

Branch coverage
N/A

Covered branches: | 0
Total branches: | 0
Branch coverage: | N/A

Method coverage

Feature is only available for sponsors

Upgrade to PRO version

# Metrics

Method | Branch coverage | Cyclomatic complexity | Line coverage
--- | --- | --- | ---
RotateLeft(...) | 100% | 1 | 0%
RotateLeft(...) | 100% | 1 | 0%
RotateRight(...) | 100% | 1 | 0%
RotateRight(...) | 100% | 1 | 0%

# File(s)

## \home\appveyor\projects\ssh-net\src\Renci.SshNet\Security\BouncyCastle\util\Integers.cs

| # | Line |  | Line coverage
--- | --- | --- | --- | ---
|  | `1` |  | `using System;`
|  | `2` |  | ``
|  | `3` |  | `namespace Renci.SshNet.Security.Org.BouncyCastle.Utilities`
|  | `4` |  | `{`
|  | `5` |  | `internal abstract class Integers`
|  | `6` |  | `{`
|  | `7` |  | `public static int RotateLeft(int i, int distance)`
| 0 | `8` |  | `{`
| 0 | `9` |  | `return (i << distance) ^ (int)((uint)i >> -distance);`
| 0 | `10` |  | `}`
|  | `11` |  | ``
|  | `12` |  | `public static uint RotateLeft(uint i, int distance)`
| 0 | `13` |  | `{`
| 0 | `14` |  | `return (i << distance) ^ (i >> -distance);`
| 0 | `15` |  | `}`
|  | `16` |  | ``
|  | `17` |  | `public static int RotateRight(int i, int distance)`
| 0 | `18` |  | `{`
| 0 | `19` |  | `return (int)((uint)i >> distance) ^ (i << -distance);`
| 0 | `20` |  | `}`
|  | `21` |  | ``
|  | `22` |  | `public static uint RotateRight(uint i, int distance)`
| 0 | `23` |  | `{`
| 0 | `24` |  | `return (i >> distance) ^ (i << -distance);`
| 0 | `25` |  | `}`
|  | `26` |  | `}`
|  | `27` |  | `}`

# Methods/Properties

RotateLeft(System.Int32,System.Int32)
RotateLeft(System.UInt32,System.Int32)
RotateRight(System.Int32,System.Int32)
RotateRight(System.UInt32,System.Int32)