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