WriteInt() public static method

public static WriteInt ( int val, Stream s ) : void
val int
s Stream
return void
示例#1
0
文件: Crc32.cs 项目: kingctan/brunet
        public static byte[] ComputeChecksumBytes(byte[] bytes, int offset, int length)
        {
            int crc = (int)ComputeChecksum(bytes, offset, length);
            var res = new byte[4];

            NumberSerializer.WriteInt(crc, res, 0);
            return(res);
        }