Skip to content

Commit 43d30ff

Browse files
committed
Squashed commit of the following:
commit 057579d Merge: fddf046 3bc5684 Author: Scott Xu <[email protected]> Date: Sun Jun 23 14:56:44 2024 +0800 Merge branch 'develop' into system-memory commit fddf046 Merge: 3148356 919af75 Author: Scott Xu <[email protected]> Date: Tue Jun 18 16:17:44 2024 +0800 Merge branch 'develop' into system-memory commit 3148356 Merge: cd96b8f 27fad71 Author: Scott Xu <[email protected]> Date: Mon Jun 17 18:04:30 2024 +0800 Merge branch 'develop' into system-memory commit cd96b8f Merge: 81338e7 bb51335 Author: Scott Xu <[email protected]> Date: Wed Jun 5 07:31:04 2024 +0800 Merge branch 'develop' into system-memory commit 81338e7 Author: Scott Xu <[email protected]> Date: Tue May 28 22:53:14 2024 +0800 Remove unnecessary `AsSpan()` commit 75aa619 Author: Scott Xu <[email protected]> Date: Tue May 28 22:49:28 2024 +0800 Ref System.Memory for net462 and netstandard2.0. Use System.Buffers.Binary.BinaryPrimitives instead of Renci.SshNet.Common.Pack
1 parent a553152 commit 43d30ff

File tree

12 files changed

+70
-530
lines changed

12 files changed

+70
-530
lines changed

src/Renci.SshNet/Common/DerData.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System;
2+
using System.Buffers.Binary;
23
using System.Collections.Generic;
34

45
namespace Renci.SshNet.Common
@@ -198,7 +199,8 @@ public void Write(bool data)
198199
/// <param name="data">UInt32 data to write.</param>
199200
public void Write(uint data)
200201
{
201-
var bytes = Pack.UInt32ToBigEndian(data);
202+
var bytes = new byte[sizeof(uint)];
203+
BinaryPrimitives.WriteUInt32BigEndian(bytes, data);
202204
_data.Add(Integer);
203205
var length = GetLength(bytes.Length);
204206
WriteBytes(length);

src/Renci.SshNet/Common/Pack.cs

Lines changed: 0 additions & 282 deletions
This file was deleted.

0 commit comments

Comments
 (0)