Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/Renci.SshNet/Common/DerData.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.Buffers.Binary;
using System.Collections.Generic;

namespace Renci.SshNet.Common
Expand Down Expand Up @@ -198,7 +199,8 @@ public void Write(bool data)
/// <param name="data">UInt32 data to write.</param>
public void Write(uint data)
{
var bytes = Pack.UInt32ToBigEndian(data);
var bytes = new byte[sizeof(uint)];
BinaryPrimitives.WriteUInt32BigEndian(bytes, data);
_data.Add(Integer);
var length = GetLength(bytes.Length);
WriteBytes(length);
Expand Down
282 changes: 0 additions & 282 deletions src/Renci.SshNet/Common/Pack.cs

This file was deleted.

Loading