Skip to content

Commit

Permalink
clean up usings
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaspimentel committed Nov 12, 2024
1 parent 47e4624 commit 466606c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tracer/src/Datadog.Trace/Util/HexString.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using System;
using System.Diagnostics.Contracts;
using System.Runtime.CompilerServices;
using Datadog.Trace.DataStreamsMonitoring.Utils;
using Datadog.Trace.VendoredMicrosoftCode.System.Buffers.Binary;
#if NETCOREAPP
using BitConverter = System.BitConverter;
using MemoryMarshal = System.Runtime.InteropServices.MemoryMarshal;
Expand All @@ -28,7 +28,7 @@ internal static class HexString
[MethodImpl(MethodImplOptions.AggressiveInlining)]
private static ulong ReverseIfLittleEndian(ulong value)
{
return BitConverter.IsLittleEndian ? BinaryPrimitivesHelper.ReverseEndianness(value) : value;
return BitConverter.IsLittleEndian ? BinaryPrimitives.ReverseEndianness(value) : value;
}

[Pure]
Expand All @@ -37,8 +37,8 @@ private static TraceId ReverseIfLittleEndian(TraceId value)
{
if (BitConverter.IsLittleEndian)
{
var upper = BinaryPrimitivesHelper.ReverseEndianness(value.Upper);
var lower = BinaryPrimitivesHelper.ReverseEndianness(value.Lower);
var upper = BinaryPrimitives.ReverseEndianness(value.Upper);
var lower = BinaryPrimitives.ReverseEndianness(value.Lower);

// We're intentionally not flipping upper/lower around. This struct doesn't act like a UInt128,
// where the order of the field needs to be reversed. Instead, Upper is always Upper
Expand Down

0 comments on commit 466606c

Please sign in to comment.