如果是按照高字节在前、低字节在后的顺序写入二进制,如何写入:
其中 u_long 为4字节无符号长整型,字节位序高位在前!
例如:
结构体:
u_long ulSerialNo;
u_long ucWins[10];
例如:
35200010 写成02191C0A
请提供方法或例子谢谢!
其中 u_long 为4字节无符号长整型,字节位序高位在前!
例如:
结构体:
u_long ulSerialNo;
u_long ucWins[10];
例如:
35200010 写成02191C0A
请提供方法或例子谢谢!
begin
Stream.Write(B,1);
end;procedure TDllCommManager.WriteWord(Stream:TStream;W:Word);
begin
WriteByte(Stream,W shr 8 and $ff);
WriteByte(Stream,W and $ff);
end;