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