public void Write(Stream s) { s.Write(this.ID.Binary, 0, this.ID.Binary.Length); s.Write(this.Size.Binary, 0, this.Size.Binary.Length); if (this.Data!=null) { s.Write(this.Data, 0, this.Data.Length); } }