You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jens Geyer (Jira)" <ji...@apache.org> on 2019/11/23 21:28:00 UTC

[jira] [Resolved] (THRIFT-5010) BinaryPrimitives.Read/WriteInt32BigEndian should be used to convert to/from network byte order

     [ https://issues.apache.org/jira/browse/THRIFT-5010?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jens Geyer resolved THRIFT-5010.
--------------------------------
    Fix Version/s: 0.14.0
       Resolution: Fixed

Committed, thanks!

> BinaryPrimitives.Read/WriteInt32BigEndian should be used to convert to/from network byte order
> ----------------------------------------------------------------------------------------------
>
>                 Key: THRIFT-5010
>                 URL: https://issues.apache.org/jira/browse/THRIFT-5010
>             Project: Thrift
>          Issue Type: Improvement
>          Components: netstd - Library
>    Affects Versions: 0.13.0
>            Reporter: Edward Zhuravlov
>            Assignee: Edward Zhuravlov
>            Priority: Major
>              Labels: features
>             Fix For: 0.14.0
>
>   Original Estimate: 2h
>          Time Spent: 20m
>  Remaining Estimate: 1h 40m
>
> Conversion -should be- _from/to TCP protocol format (always big-Endian) to execution engine_ based on processor architecture. See System.BitConverter class ():
> [https://docs.microsoft.com/en-us/dotnet/api/system.bitconverter?view=netstandard-2.0]
>  ??The endianness of an architecture is indicated by the [IsLittleEndian|https://docs.microsoft.com/en-us/dotnet/api/system.bitconverter.islittleendian?view=netframework-4.8] property, which returns {{true}} on little-endian systems and {{false}} on big-endian systems. On little-endian systems, lower-order bytes precede higher-order bytes. On big-endian system, higher-order bytes precede lower-order bytes. ??
> Recomended use BinaryPrimitives.WriteInt32BigEndian/ReadInt32BigEndian class from nuget System.Memory by Microsoft for NetStandard 2.0.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)