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