var tmp = BitConverter.ToInt32(new byte[]{...}); var bytes = BitConverter.GetBytes(tmp);
而String转byte[]和转回要用Encoding。
var tmp = BitConverter.ToInt32(new byte[]{...}); var bytes = BitConverter.GetBytes(tmp);
而String转byte[]和转回要用Encoding。
转载于:https://www.cnblogs.com/hont/p/4273017.html