Example #1
0
 public void WriteNum(double v)
 {
     ReAlloc(ref data_, pos_, 8);
     BytesHelper.MoveToBytes(data_, pos_, v);
     pos_ += 8;
 }
Example #2
0
 public void WriteInt64(Int64 v)
 {
     BytesHelper.MoveToBytes(data_, pos_, v);
     pos_ += 8;
 }
Example #3
0
 public void WriteShort(short v)
 {
     ReAlloc(ref data_, pos_, 2);
     BytesHelper.MoveToBytes(data_, pos_, v);
     pos_ += 2;
 }
Example #4
0
 public void WriteFloat(float v)
 {
     ReAlloc(ref data_, pos_, 4);
     BytesHelper.MoveToBytes(data_, pos_, v);
     pos_ += 4;
 }
Example #5
0
 public void WriteUInt(uint v)
 {
     ReAlloc(ref data_, pos_, 4);
     BytesHelper.MoveToBytes(data_, pos_, v);
     pos_ += 4;
 }
Example #6
0
 public void WriteSByte(sbyte v)
 {
     ReAlloc(ref data_, pos_, 1);
     BytesHelper.MoveToBytes(data_, pos_, v);
     pos_++;
 }
Example #7
0
 public void WriteFloat(float v)
 {
     ReAlloc(ref this.data, this.pos, sizeof(float));
     BytesHelper.MoveToBytes(this.data, this.pos, v);
     this.pos += sizeof(float);
 }
Example #8
0
 public void WriteDouble(double v)
 {
     ReAlloc(ref this.data, this.pos, sizeof(double));
     BytesHelper.MoveToBytes(this.data, this.pos, v);
     this.pos += sizeof(double);
 }
Example #9
0
 public void WriteLongInt(long v)
 {
     BytesHelper.MoveToBytes(this.data, this.pos, v);
     this.pos += sizeof(long);
 }
Example #10
0
 public void WriteUnsignedInt(uint v, int pos)
 {
     BytesHelper.MoveToBytes(this.data, pos, v);
     this.pos += sizeof(uint);
 }
Example #11
0
 public void WriteUnsignedInt(uint v)
 {
     ReAlloc(ref this.data, this.pos, sizeof(uint));
     BytesHelper.MoveToBytes(this.data, this.pos, v);
     this.pos += sizeof(uint);
 }
Example #12
0
 public void WriteUnsignedShortInt(ushort v)
 {
     ReAlloc(ref this.data, this.pos, 2);
     BytesHelper.MoveToBytes(this.data, this.pos, v);
     this.pos += 2;
 }
Example #13
0
 public void WriteSByte(sbyte v)
 {
     ReAlloc(ref this.data, this.pos, 1);
     BytesHelper.MoveToBytes(this.data, this.pos, v);
     this.pos++;
 }