Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ref System.Memory for net462 and netstandard2.0 #1417

Merged
merged 9 commits into from
Jul 4, 2024
Merged
Show file tree
Hide file tree
Changes from 7 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