public static double GetDouble(StreamBuffer source, int readIndex)
{
if (readIndex + sizeof(double) > source.WrittenBytes)
throw new AegisException(AegisResult.BufferUnderflow, "No more readable buffer.");
return BitConverter.ToDouble(source.Buffer, readIndex);
}