public void AddString2ByteHead(string str)
 {
     if (string.IsNullOrEmpty(str))
     {
         this.list.AddRange(HelperBitsConvertor.GetBytes((ushort)0));
         return;
     }
     byte[] bytes = HelperBitsConvertor.ToBytes(str);
     this.list.AddRange(HelperBitsConvertor.GetBytes((ushort)bytes.Length));
     this.list.AddRange(bytes);
 }
 public void Add(sbyte singleSignedByte)
 {
     this.list.AddRange(HelperBitsConvertor.GetBytes(singleSignedByte));
 }
 public void AddFloat(float value)
 {
     this.list.AddRange(HelperBitsConvertor.GetBytes(value));
 }
 public void Add(double value)
 {
     this.list.AddRange(HelperBitsConvertor.GetBytes(value));
 }
 public void AddUShort(ushort value)
 {
     this.list.AddRange(HelperBitsConvertor.GetBytes((ushort)value));
 }
 public void Add(byte singleByte)
 {
     this.list.AddRange(HelperBitsConvertor.GetBytes((int)singleByte));
 }
 public void Insert(int pos, long value)
 {
     this.list.InsertRange(pos, HelperBitsConvertor.GetBytes(value));
 }
 public void Insert(int pos, short value)
 {
     this.list.InsertRange(pos, HelperBitsConvertor.GetBytes((int)value));
 }
 public void AddInt(int value)
 {
     this.list.AddRange(HelperBitsConvertor.GetBytes((int)value));
 }
 public void AddLong(long value)
 {
     this.list.AddRange(HelperBitsConvertor.GetBytes((long)value));
 }