先上效果图:
工具类
在解析的过程中,我们会和byte做各种运算,所以我定义了一个byte工具类ByteUtils:
代码如下:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;namespace FLVParer.Utils{ class ByteUtils { public static uint ByteToUInt(byte[] bs, int length) {