예제 #1
0
 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);
 }
예제 #2
0
 public void Add(sbyte singleSignedByte)
 {
     this.list.AddRange(HelperBitsConvertor.GetBytes(singleSignedByte));
 }
예제 #3
0
 public void AddFloat(float value)
 {
     this.list.AddRange(HelperBitsConvertor.GetBytes(value));
 }
예제 #4
0
 public void Add(double value)
 {
     this.list.AddRange(HelperBitsConvertor.GetBytes(value));
 }
예제 #5
0
 public void AddUShort(ushort value)
 {
     this.list.AddRange(HelperBitsConvertor.GetBytes((ushort)value));
 }
예제 #6
0
 public void Add(byte singleByte)
 {
     this.list.AddRange(HelperBitsConvertor.GetBytes((int)singleByte));
 }
예제 #7
0
 public void Insert(int pos, long value)
 {
     this.list.InsertRange(pos, HelperBitsConvertor.GetBytes(value));
 }
예제 #8
0
 public void Insert(int pos, short value)
 {
     this.list.InsertRange(pos, HelperBitsConvertor.GetBytes((int)value));
 }
예제 #9
0
 public void AddInt(int value)
 {
     this.list.AddRange(HelperBitsConvertor.GetBytes((int)value));
 }
예제 #10
0
 public void AddLong(long value)
 {
     this.list.AddRange(HelperBitsConvertor.GetBytes((long)value));
 }