关于BinaryWriter 的问题 用 BinaryWrite 写入数据流 比如 write(int32) write(int16) 写入结果都是高位在后..低位在前....有没有办法 反过来呢? 比如 258 他会写成 02 01 ..因为用c#生成数据要在j2me中用。...java读取流和这个相反..谢谢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 有没有方法可以简单的反过来..非用 write(byte) 方法反过来 byte[] byResponse.BinaryWrite(by); public static void WriteShort(short a,BinaryWriter w) { w.Write(((byte)((a>>8) & 0xff))); w.Write(((byte)(a&0xff))); } public static void WriteInt(int a, BinaryWriter w) { w.Write((byte)((a>>24)&0xff)); w.Write((byte)((a >> 16) & 0xff)); w.Write((byte)((a >> 8) & 0xff)); w.Write((byte)((a) & 0xff)); }只能如此了。..哎 C# Image.save/Bitmap.save问题 asp.net 安装包 安装到一半时回滚 关于保留2位小数 在C#中,窗口最小化后如何保持变量的值不变 C#,OpenGL,CsGL回答有加分 跪求 C#传输文件解决方案(很有挑战性...) 简单类的问题 高分请大家想想这奇怪的问题,C/S的运行程序,调用公司公布的WEB服务,在客户那安装运行正常,都是通过WEB服务连到我们公司的数据库,在 怎么在操作系统启动时启动我写的程序? 请教:装vs.net出现的问题---“检测到安装失败,请按确认键后退出。。” 定时查询 ,线程 关于提取网页中出现频率较高的字词
{
w.Write(((byte)((a>>8) & 0xff)));
w.Write(((byte)(a&0xff)));
}
public static void WriteInt(int a, BinaryWriter w)
{
w.Write((byte)((a>>24)&0xff));
w.Write((byte)((a >> 16) & 0xff));
w.Write((byte)((a >> 8) & 0xff));
w.Write((byte)((a) & 0xff));
}
只能如此了。..哎