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