Example #1
0
 public double PeekDouble()
 {
     return(FastBitConverter.ToDouble(_data, _position));
 }
Example #2
0
 public uint PeekUInt()
 {
     return(FastBitConverter.ToUInt32(_data, _position));
 }
Example #3
0
 public float PeekFloat()
 {
     return(FastBitConverter.ToSingle(_data, _position));
 }
Example #4
0
 public short PeekShort()
 {
     return(FastBitConverter.ToInt16(_data, _position));
 }
Example #5
0
 public ulong PeekULong()
 {
     return(FastBitConverter.ToUInt64(_data, _position));
 }
Example #6
0
 public char PeekChar()
 {
     return((char)FastBitConverter.ToInt16(_data, _position));
 }
Example #7
0
 public uint ReadSlotInt32(uint offset, int idx)
 {
     return(FastBitConverter.ToUInt32(_data, (int)(offset + idx * 2)));
 }
Example #8
0
 public void Write(char value)
 {
     ResizeIfNeed(_position + 2);
     FastBitConverter.GetBytes(_data, _position, value);
     _position += 2;
 }
Example #9
0
 public void Write(uint value)
 {
     ResizeIfNeed(_position + 4);
     FastBitConverter.GetBytes(_data, _position, value);
     _position += 4;
 }
Example #10
0
 public void Write(ulong value)
 {
     ResizeIfNeed(_position + 8);
     FastBitConverter.GetBytes(_data, _position, value);
     _position += 8;
 }