8000 Feature/decimal support by GoEddie · Pull Request #982 · dotnet/spark · GitHub
[go: up one dir, main page]

Skip to content

Feature/decimal support #982

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

Open
wants to merge 19 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
isnt used
  • Loading branch information
GOEddieUK committed Oct 14, 2021
commit 66e357bac3a91b494ef310b794ed24e8921b0d14
14 changes: 1 addition & 13 deletions src/csharp/Microsoft.Spark/Interop/Ipc/SerDe.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,19 +101,7 @@ public static double ReadDouble(Stream s)
TryReadBytes(s, buffer, sizeof(long));
return BitConverter.Int64BitsToDouble(BinaryPrimitives.ReadInt64BigEndian(buffer));
}

/// <summary>
/// Reads a decimal from a stream.
/// </summary>
/// <param name="s">The stream to be read</param>
/// <returns>The decimal read from stream</returns>
public static decimal ReadDecimal(Stream s)
{
byte[] buffer = GetThreadLocalBuffer(sizeof(long));
TryReadBytes(s, buffer, sizeof(long));
return BinaryPrimitives.ReadInt64BigEndian(buffer);
}


/// <summary>
/// Reads a string from a stream
/// </summary>
Expand Down
0