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