public override byte[] Create()
{
this.buf.Add((byte)(this.ID & 255));
this.buf.Add((byte)(this.ID >> 8 & 255));
int num = 0;
num += 16;
this.buf.Add((byte)(num & 255));
this.buf.Add((byte)(num >> 8 & 255));
this.buf.Add((byte)(this.sceneid & 255));
this.buf.Add((byte)(this.sceneid >> 8 & 255));
this.buf.Add((byte)(this.sceneid >> 16 & 255));
this.buf.Add((byte)(this.sceneid >> 24 & 255));
byte[] bytes = BitConverter.GetBytes(this.x);
for (int i = 0; i < bytes.Length; i++)
{
this.buf.Add(bytes[i]);
}
byte[] bytes2 = BitConverter.GetBytes(this.y);
for (int j = 0; j < bytes2.Length; j++)
{
this.buf.Add(bytes2[j]);
}
this.buf.Add((byte)(this.state & 255));
this.buf.Add((byte)(this.state >> 8 & 255));
this.buf.Add((byte)(this.state >> 16 & 255));
this.buf.Add((byte)(this.state >> 24 & 255));
return this.buf.ToArray();
}
好像是读取字节流