mkjeff / secs4net

SECS-II/HSMS-SS/GEM implementation on .NET
https://mkjeff.github.io/secs4net/
MIT License
443 stars 195 forks source link

Bit mask of 'Stream' field is wrong #70

Closed cnbeta closed 10 months ago

cnbeta commented 2 years ago

Describe the bug Bit mask used to decode a message header not contains bit6.

File:MessageHeader.cs Function: Decode

S = (byte)(s & 0b0111_111),

The integer literal 0b0111_111 should be 0b0111_1111 or 0b1111_111.