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