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