Changed BufferType enum to enum class