我目前遇到一些Socket的问题.
我想要的输出是0x5801,反转的0x0158是实际上是ushort的344.
0x5801
0x0158
ushort t = 344; p.WriteString("\x58\x01", false);
我现在想要变量而不是硬编码的十六进制.我已经尝试了一些ReverseBit类等等,但没有真正起作用.
谢谢你的帮助!
.net c# sockets endianness
.net ×1
c# ×1
endianness ×1
sockets ×1