public static bool GetBoolean(StreamBuffer source, int readIndex) { if (readIndex + sizeof(byte) > source.WrittenBytes) throw new AegisException(AegisResult.BufferUnderflow, "No more readable buffer."); return (source.Buffer[readIndex] == 1); }