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