public ushort GetUInt16()
{
if (ReadBytes + sizeof(ushort) > WrittenBytes)
throw new AegisException(AegisResult.BufferUnderflow, "No more readable buffer.");
var val = BitConverter.ToUInt16(Buffer, ReadBytes);
ReadBytes += sizeof(ushort);
return val;
}