Skip to content

Commit 13e53ce

Browse files
committed
formatting
1 parent 701c4c3 commit 13e53ce

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

NCode.Base64Url/Base64Url.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#region Copyright Preamble
2+
23
//
34
// Copyright @ 2023 NCode Group
45
//
@@ -13,6 +14,7 @@
1314
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1415
// See the License for the specific language governing permissions and
1516
// limitations under the License.
17+
1618
#endregion
1719

1820
using System.Buffers;
@@ -176,8 +178,7 @@ private static unsafe int Encode(int byteCount, byte* bytes, char* chars)
176178
{
177179
chars[charPos] = (char)map[(bytes[bytePos] & 0xFC) >> 2];
178180
chars[charPos + 1] = (char)map[((bytes[bytePos] & 0x03) << 4) | ((bytes[bytePos + 1] & 0xF0) >> 4)];
179-
chars[charPos + 2] =
180-
(char)map[((bytes[bytePos + 1] & 0x0F) << 2) | ((bytes[bytePos + 2] & 0xC0) >> 6)];
181+
chars[charPos + 2] = (char)map[((bytes[bytePos + 1] & 0x0F) << 2) | ((bytes[bytePos + 2] & 0xC0) >> 6)];
181182
chars[charPos + 3] = (char)map[bytes[bytePos + 2] & 0x3F];
182183
charPos += CharBlockSize;
183184
}
@@ -192,8 +193,7 @@ private static unsafe int Encode(int byteCount, byte* bytes, char* chars)
192193

193194
case 2: // one character padding omitted
194195
chars[charPos] = (char)map[(bytes[bytePos] & 0xFC) >> 2];
195-
chars[charPos + 1] =
196-
(char)map[((bytes[bytePos] & 0x03) << 4) | ((bytes[bytePos + 1] & 0xF0) >> 4)];
196+
chars[charPos + 1] = (char)map[((bytes[bytePos] & 0x03) << 4) | ((bytes[bytePos + 1] & 0xF0) >> 4)];
197197
chars[charPos + 2] = (char)map[(bytes[bytePos + 1] & 0x0F) << 2];
198198
charPos += 3;
199199
break;

0 commit comments

Comments
 (0)